on *:TEXT:!addstaff *:#:{ if ($nick == iZezirna) || ($nick == Alan) {
if ($readini(staff.ini,staff,$address($2,2))) {
notice $nick $+(",$2,") is already on the staff list!
halt
}
else {
writeini staff.ini staff $address($2,2) $2
/msg $chan $2 has been added to the staff list! | /notice $2 You're added to the staff list!
/cs access $chan add $2 3
}
}
}
on *:TEXT:!delstaff *:#:{ if ($address($nick,2) == $address($me,2)) {
if (!$readini(staff.ini,staff,$address($2,2))) {
notice $nick $+(",$2,") was never on the Staff List to begin with!
halt
}
else {
remini staff.ini staff $address($2,2)
/msg $chan $2 has been deleted from the staff list!
/cs access $chan Del $2 | /notice $2 You're deleted from the staff list!
}
}
}
on *:TEXT:!stafflist*:#:{ var %i = 0
while (%i < $ini(staff.ini,staff,0)) {
inc %i
msg $nick $readini(staff.ini,staff,$ini(staff.ini,staff,%i))
}
}
on *:TEXT:!clearall*:#:{ if ($address($nick,2) == $address($me,2)) {
set -u5 %sure [ $+ [ $nick ] ] 1 | /msg $chan Are you sure you want to do this? type !yes if you do. !no if you dont want to! }
}
on *:TEXT:!yes*:#:if (%sure [ $+ [ $nick ] ] == 1) { remini staff.ini staff | /msg $chan $nick has deleted everyone from the staff list! }
on *:TEXT:!global*:#:{ if ($readini(staff.ini,staff,$address($nick,2))) {
/amsg 14{7 Global - $nick 14} $2-
}
}