mIRC Home    About    Download    Register    News    Help

Print Thread
#15729 17/03/03 01:47 PM
Joined: Jan 2003
Posts: 21
J
Jay_T Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2003
Posts: 21
ok i have just one simple question
what code can i use if someone kick, deop or banned me then i will add them to akick list then enforce akick and remove akick 2 seconds later. Thanks for all of your help.

#15730 17/03/03 02:21 PM
Joined: Dec 2002
Posts: 2,985
Hoopy frood
Offline
Hoopy frood
Joined: Dec 2002
Posts: 2,985
I don't know why you'd want to do it this way but here goes.
Code:
ON *:DEOP:#: {
  if ($2 == $me && $nick != $me && $nick != ChanServ) {
    cs op # $me
    cs akick # add $nick $+ !*@*
    kick # $nick Don't deop me ya luser.
    .timer 1 10 cs akick # del $nick $+ !*@*
  }
}
; This next one covers the kick and ban/kick effort.
ON *:KICK:#: {
  if ($knick == $me) {
    cs invite #
    .timer 1 1 join #
    ; This is incase ChanServ doesn't op you.
    cs op # $me
    cs akick # add $nick $+ !*@*
    ban -u10 # $nick 2
    kick # $nick Don't ban me ya luser.
    .timer 1 10 cs akick # del $nick $+ !*@*
  }
}
I am assuming that your channel service is ChanServ here.


Link Copied to Clipboard