mIRC Homepage
Posted By: Drai Responding to a kick with a kick - 17/11/09 09:25 PM
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).
Posted By: MRN Re: Responding to a kick with a kick - 17/11/09 09:32 PM
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.
Posted By: Drai Re: Responding to a kick with a kick - 17/11/09 09:33 PM
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.
Posted By: Tomao Re: Responding to a kick with a kick - 17/11/09 10:20 PM
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.
Posted By: Wims Re: Responding to a kick with a kick - 17/11/09 10:28 PM
Code:
on *:kick:#:if ($knick == $me) set -u2 %kicker $+ $chan $nick
on me:*:join:#:if ($(,$+(%,kicker,$chan))) cs kick $chan $v1
Try this
Posted By: gooshie Re: Responding to a kick with a kick - 18/11/09 07:03 AM
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!  }
Posted By: Drai Re: Responding to a kick with a kick - 19/11/09 05:56 AM
Thanks, works perfectly smile
© mIRC Discussion Forums