alias AddID {
if ($1 == $null) { .echo Command incomplete. Syntax: /AddID <ID Number> <Reason> | halt }
if ($1 !== $null) {
if ($readini(IDList.ini, $1, Reason) !== $null) { .echo ID Number $1 has already created with reason " $readini(IDList.ini, $1, Reason) " | halt }
else {
writeini -n IDList.ini $1 ID $1
writeini -n IDList.ini $1 Reason $2-
.echo You have added ID number $1 - $2-
}
}
}
alias DelID {
if ($1 == $null) { .notice $nick Command incomplete. Syntax: /DelID <ID Number>. | halt }
if ($1 !== $null) {
if ($readini(IDList.ini, $1, ID) == $null) { .echo There is no ID Number $1 to delete! | halt }
else {
.remini IDList.ini $1
.echo You have deleted ID number $1
}
}
}
alias ShowID {
if ($1 == $null) { .notice $nick Command incomplete. Syntax: /ShowID <ID Number>. | halt }
if ($1 !== $null) {
if ($readini(IDList.ini, $1, ID) == $null) { .echo Sorry but there is no ID $1 to show | halt }
if ($readini(IDList.ini, $1, ID) !== $null) { .echo ID number $1 - $readini(IDList.ini, $1, Reason) | halt }
}
}
on *:Text:*:#: {
if ($1 == !ShowID) {
if ($2 == $null) { .notice $nick Command incomplete. Syntax: !ShowID <ID Number>. | halt }
if ($2 !== $null) {
if ($nick !isop $chan) { .notice $nick You must be opped to use this commands | halt }
if ($readini(IDList.ini, $2, ID) == $null) { .notice $nick Sorry but there is no ID $1 to show | halt }
if ($readini(IDList.ini, $2, ID) !== $null) { .notice $nick ID number $2 - $readini(IDList.ini, $2, Reason) | halt }
}
}
}