on *:TEXT:!botstaff add *:#: {
if ($address($nick,2) == $readini(ZH-Botini.ini,list,$address($nick,2))) {
writeini staff.ini staff $3 $3
writeini staff.ini list $address($3,2) $address($3,2)
notice $nick $3 has been added to the staff list successfully
notice $3 You have been granted $me Admin privileges
}
else {
notice $nick You need to be a $me Admin to do this!
}
}
on *:TEXT:!botstaff remove *:#: {
if ($address($nick,2) == $readini(ZH-Botini.ini,list,$address($nick,2))) {
remini ZH-Botini.ini staff $3 $3
remini ZH-Botini.ini list $address($3,2) $address($3,2)
notice $nick $3 has been removed from the staff list successfully)
notice $3 Your $me Admin privileges have been revoked by $nick
}
else {
notice $nick You need to be a $me Admin to do this!
)
}
}