on *:Text:*:#CHANNEL: {
if ($1 == !AddID) {
if ($2 == $null) { .notice $nick Command incomplete. Syntax: !AddID <ID Number> <Reason> | halt }
if ($2 !== $null) {
if ($nick !isop $chan) { .notice $nick you must be opped to use this commands | halt }
if ($readini(IDList.ini, $2, Reason) !== $null) { .notice $nick ID Number $2 has already created with reason $readini(IDList.ini, $2, Reason). | halt }
else {
writeini -n IDList.ini $2 ID $2
writeini -n IDList.ini $2 Reason $3-
.notice $nick Added $2 - $3-
}
}
}
if ($1 == !DelID) {
if ($2 == $null) { .notice $nick Command incomplete. Syntax: DelID <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 ID $2 is not in the ID list | halt }
else {
.remini IDList.ini $2
.notice $nick ID $2 has been removed from the ID list.
}
}
}
if ($1 == !ShowID) {
if ($2 == $null) { .notice $nick Command incomplete. Syntax: !ShowID <ID Number>. | halt }
if ($2 !== $null) {
if ($readini(IDList.ini, $2, ID) == $null) { .notice $nick $2 is not in the ID list. | halt }
if ($readini(IDList.ini, $2, ID) !== $null) { .notice $nick ID $2 - $readini(IDList.ini, $2, Reason) | halt }
}
}
}