Unauthorized Admin\Oper Kill

By DarkLordPazuzu on Sep 18, 2004

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

Comments

Sign in to comment.
blackvenomm666   -  Jul 03, 2011
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

 Respond  
blackvenomm666   -  Jul 03, 2011

this snippet completely blows seriously

 Respond  
ALONE   -  Dec 16, 2009

i need some help
i want a snipper code for mirc users
i want all users come from only java
if i allow to some one ..he can come from mirc
other all users come from java
is there any code for that ?

 Respond  
just_neo   -  Nov 03, 2007

ps (for the writer)

you could user \'anope\' for you\'re server as services;;

its better and hostserv is include;;;;;

 Respond  
just_neo   -  Nov 03, 2007

Why have DUMB questions, that its dumb, I THINK its really good,

  • you could better add host in you\'re script like scakk sayd if they using another nick they would be killed,

solution:

you could add
(example)
on *:notice:addme %password:?:{ write to file }

Maybe it works:/

 Respond  
Scakk   -  Oct 21, 2007

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.

 Respond  
ZiX   -  Oct 21, 2007

it works fine. but maybe u should add a command to add a person to a safe list such as /addsafe DominiOn ..something like that would be much easier.
keep the nice work up ;]

 Respond  
Danny27   -  Jun 15, 2007

hi have tried this script but it just kills me time after time????
i made the adminlist.txt put into the mirc directory and put my name in \"DANNY\" and it kills me y? wat im i doin wrong?

 Respond  
LIQUID_NiTrO   -  Nov 01, 2004

cave: if you don\'t know how to install and make it work, chances are you\'re just not an IRCop (you know if you are). If you are, just put it into your remotes and make a text file in your mIRC dir called adminlist.txt and fill it with the names of \"authorized\" IRCops (one name per line)

 Respond  
millsie   -  Sep 22, 2004

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

 Respond  
Kryptic   -  Sep 22, 2004

well is its \"horribly coded\" id like to see you do better...

 Respond  
cave   -  Sep 20, 2004

hey sup ppl, can u help me with that i dont understand how to install/ make it work

 Respond  
syk1k   -  Sep 19, 2004

this will work but i think instead of using a text file a hash table would be a better option , this of course is no help if u dont know $hget()

 Respond  
DarkLordPazuzu   -  Sep 19, 2004

I just updated it, heh forgot to fix a few things. They should all be fixed now.

 Respond  
DarkLordPazuzu   -  Sep 19, 2004

It works though

 Respond  
j0k3r   -  Sep 18, 2004

horribly coded

 Respond  
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.