mIRC Home    About    Download    Register    News    Help

Print Thread
D
Drai
Drai
D
This is what I have so far.
Code:
on *:kick:#: if ($nick == $me) cs kick $nick

I believe that code would be right but it doesn't seem to be working.

I have auto-rejoin after being kicked on, so maybe this would work if I have the right delay on the script (which I am not sure how to implement).

M
MRN
MRN
M
1) Both are in the channel.
2) User B kicks you.
3) Userr B kicked you, you are out of the channel, and then mIRC gets informed.
4) You try to re-kick, but can't, since you are no longer in the channel.

So, solution would that you save the kickers nick, and try to kick him once you regain op status again.

D
Drai
Drai
D
Originally Posted By: MRN
1) Both are in the channel.
2) User B kicks you.
3) Userr B kicked you, you are out of the channel, and then mIRC gets informed.
4) You try to re-kick, but can't, since you are no longer in the channel.

So, solution would that you save the kickers nick, and try to kick him once you regain op status again.

That is why I was wondering if I can set a timer on the script. I've done it before but I forget how.

What you described is the problem I figured was going on.

Last edited by Drai; 17/11/09 09:34 PM.
Joined: Jul 2007
Posts: 1,124
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,124
You need to set the person who kicks you with a global variable and upon returning and re-opping, you kick that person according to the variable and then unset it.

Joined: Jul 2006
Posts: 4,020
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,020
Code:
on *:kick:#:if ($knick == $me) set -u2 %kicker $+ $chan $nick
on me:*:join:#:if ($(,$+(%,kicker,$chan))) cs kick $chan $v1
Try this


#mircscripting @ irc.swiftirc.net == the best mIRC help channel
G
gooshie
gooshie
G
Code:
on *:op:#:revenge $opnick
on *:help:#:revenge $hnick
on *:kick:#:if ($me = $knick) hadd -mu9 kicker # $nick
alias revenge if $1 = $me && $hget(kicker,#) { kick # $hget(kicker,#)  Vengence is a dish best served AutoMagically!  }

D
Drai
Drai
D
Thanks, works perfectly smile


Link Copied to Clipboard