mIRC Home    About    Download    Register    News    Help

Print Thread
#109555 30/01/05 08:50 PM
Joined: Dec 2004
Posts: 9
L
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
L
Joined: Dec 2004
Posts: 9
I have this protection script for protecting me from being banned/deoped/kicked/... (I am channel operator) Sometimes when I rejoin ChanServ doesn't give me op right away and my script doesn't complete. For example when I get kicked, I rejoin and kick the kicker. Whithout op this is hard you see ;-) when chanserv is slow.

#109556 30/01/05 09:02 PM
Joined: Jan 2005
Posts: 19
U
Pikka bird
Offline
Pikka bird
U
Joined: Jan 2005
Posts: 19
did you have a question ?

#109557 30/01/05 09:18 PM
Joined: Oct 2004
Posts: 38
S
Ameglian cow
Offline
Ameglian cow
S
Joined: Oct 2004
Posts: 38
Hmmm... try to use variables, something like this:

on 1:kick:#:{
if ($knick == $me) { set %kick $chan $nick }
}
on 1:op:#:{
if (($gettok(%kick,1,32) == $chan) && ($opnick == $me)) { kick # $gettok(%kick,2,32) don`t kick me | unset %kick }
}

this is just example.


Link Copied to Clipboard