Its a simple on snotice token script.
Make adminlist.txt in your script directory and make a list of nicks that are authorized, one for each line. The script will do the rest for you.
#adminlist on
on *:snotice:*is now an IRC Operator*:{
var %adminnick $gettok($remove($4,$chr(40)),1,64)
set %tempfilea $read(adminlist.txt, w, %adminnick)
if ($gettok(%tempfilea,0,32) != $null) { notice $4 4Hello $4. }
else { kill $4 Unauthorized Admin/Oper Nickname }
unset %tempfilea
}
#adminlist end
Menu menubar,nicklist,channel,status {
.adminsafelist
..SafeList Nick:auser AdminSafe $$?="SafeList What Nick?"
..UnSafeList Nick:ruser AdminSafe $$?"UnSafeList What Nick?"
}
on *:snotice:*is now an IRC Operator*:{
if ($level($4) != AdminSafe) {
.kill $4 you are not in the safelist
}
}
^^^better one
The only problem I can see right off without even using is this. Using this you will need to know all the IRCops for the network ( not anissue if you are an IRCop ). Also you will have to know every possible nick that an IRCop chooses to login with. The second is different than the first in that this is where they decide to join using a different nick than they ever have before. If they do that then you will kill them when they have done nothing wrong.
hmm. why is it horribly coded? only thing i can see that he left out was the switch to turn the groups on and off.. its short.. its in a txt file allowing unlimited storage.. ohhh hang on now i know why... its not complicated enough for ya.. All said and done at the end of the day.. its simple code for a simple job and works extremely well for what it does as backup security.. good job