mIRC Home    About    Download    Register    News    Help

Print Thread
auto op after deop #238929 09/09/12 01:16 AM
Joined: Oct 2005
Posts: 54
B
bojak71730 Offline OP
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.
Re: auto op after deop [Re: bojak71730] #238930 09/09/12 02:18 AM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
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

Re: auto op after deop [Re: Horstl] #238931 09/09/12 02:30 AM
Joined: Oct 2005
Posts: 54
B
bojak71730 Offline OP
Babel fish
OP Offline
Babel fish
B
Joined: Oct 2005
Posts: 54
how can i protect the bot from being deoped?

Re: auto op after deop [Re: bojak71730] #238934 09/09/12 03:04 PM
Joined: Oct 2004
Posts: 8,330
Riamus2 Offline
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