mIRC Home    About    Download    Register    News    Help

Topic Options
#216508 - 17/11/09 09:25 PM Responding to a kick with a kick
Drai Offline
Ameglian cow

Registered: 28/11/07
Posts: 20
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).

Top
#216509 - 17/11/09 09:32 PM Re: Responding to a kick with a kick [Re: Drai]
MRN Offline
Ameglian cow

Registered: 26/02/03
Posts: 26
Loc: Arendal, Norway
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.

Top
#216510 - 17/11/09 09:33 PM Re: Responding to a kick with a kick [Re: MRN]
Drai Offline
Ameglian cow

Registered: 28/11/07
Posts: 20
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.


Edited by Drai (17/11/09 09:34 PM)

Top
#216513 - 17/11/09 10:20 PM Re: Responding to a kick with a kick [Re: Drai]
Tomao Offline
Hoopy frood

Registered: 07/07/07
Posts: 1129
Loc: United States
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.

Top
#216514 - 17/11/09 10:28 PM Re: Responding to a kick with a kick [Re: Drai]
Wims Offline
Planetary brain

Registered: 31/07/06
Posts: 3438
Loc: France
Code:
on *:kick:#:if ($knick == $me) set -u2 %kicker $+ $chan $nick
on me:*:join:#:if ($(,$+(%,kicker,$chan))) cs kick $chan $v1
Try this
_________________________
Looking for a good help channel about mIRC? Check #mircscripting @ irc.swiftirc.net

Top
#216530 - 18/11/09 07:03 AM Re: Responding to a kick with a kick [Re: Wims]
gooshie Offline
Vogon poet

Registered: 14/11/09
Posts: 117
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!  }

Top
#216560 - 19/11/09 05:56 AM Re: Responding to a kick with a kick [Re: gooshie]
Drai Offline
Ameglian cow

Registered: 28/11/07
Posts: 20
Thanks, works perfectly smile

Top