on *:text:!addc*:#:{ if ($nick == Manic) {
if ($2 == null) /notice $nick Error, insert channels name !addc <channel name> | halt
}
else {
set $2 %Channame
/write oplist %channame.txt
/write hoplist %channame.txt
/write voicelist %channame.txt
/notice $nick %channame Successfully added.
}
} } }
on *:text:!addo*:#:{ if ($nick == Manic) {
if ($read(oplist.txt,w,$2)) { notice $nick Error - $2 is already in the file document "Op List" | halt
}
else {
set %add.op $2
write oplist.txt %add.op
notice $nick You have successfully added %add.op to the "Op List".
} } }
on *:text:!addho*:#:{ if ($nick == Manic) {
if ($read(hoplist.txt,w,$2)) { notice $nick Error - $2 is already in the file document "hop List" | halt
}
else {
set %add.hop $2
write oplist.txt %add.hop
notice $nick You have successfully added %add.hop to the "hOp List".
} } }
on *:text:!addv*:#:{ if ($nick == Manic) {
if ($read(voicelist.txt,w,$2)) { notice $nick Error - $2 is already in the file document "voice List" | halt
}
else {
set %add.v $2
write oplist.txt %add.v
notice $nick You have successfully added %add.v to the "Voice List".
} } }
----
on *:text:!id*:#:{
if ($2 == $null) { /notice $1 4Error - $nick - Specify a User to Identify | halt
}
else {
if ($read(oplist.txt,w,$2)) {
/notice $nick 4 $2 12Is identified as 4 an OP 12. | /mode # +o $2
}
else {
if ($read(hoplist.txt,w,$2)) {
/notice $nick 4 $2 12Is identified as 4 an H-OP 12. | /mode #manic +hop $2
}
else {
if ($read(voicelist.txt,w,$2)) {
/notice $nick 4 $2 12Is identified as 4 an Voiced member. 12. | /mode #manic +v $2
else {
if (!$read(oplist.txt,w,$2)) && (!$read(hoplist.txt,w,$2)) && (!$read(voicelist.txt,w,$2)) {
/notice $nick 12The nickname4 $2 12is 4not12 identified in any of the status lists.
} } } } } } } } } }