mIRC Home    About    Download    Register    News    Help

Print Thread
#238929 09/09/12 01:16 AM
Joined: Oct 2005
Posts: 54
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
Code:
on *:DEOP:#: { 
  IF ($nick == bojak || $nick == kaytee) {
   mode # $nick 
} 

}

i cant make my bot auto op after i was deop... $nick is the names i want my bot to protect from being deoped..

Last edited by bojak71730; 09/09/12 01:17 AM.
Joined: Nov 2006
Posts: 1,559
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
Code:
on @*:DEOP:#: { 
  if ($opnick == bojak || $opnick == kaytee) {
   mode # +o $opnick 
  }
} 

* the @ event prefix will make it trigger only if the client running the script (the bot) is currently oped
* $nick in the op/deop event refers to the nick giving/taking op. $opnick is the nick oped/deoped
* you want to set mode +o = give op

Joined: Oct 2005
Posts: 54
B
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
how can i protect the bot from being deoped?

Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
The best way is to have it on a network with channel services that can make it possible to deal with that situation. If you aren't on a network with channel services, the only option would be to have multiple bots or people who will automatically re-op the bot if it gets de-opped, and even then it's not foolproof.

In the end, if you are concerned about that, then you should reconsider who is allowed to be an op. Don't op anyone who you think will de-op the bot.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard