mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Nov 2007
Posts: 20
D
Drai Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Nov 2007
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).

Joined: Feb 2003
Posts: 26
M
MRN Offline
Ameglian cow
Offline
Ameglian cow
M
Joined: Feb 2003
Posts: 26
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.

Joined: Nov 2007
Posts: 20
D
Drai Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Nov 2007
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.

Last edited by Drai; 17/11/09 09:34 PM.
Joined: Jul 2007
Posts: 1,129
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Jul 2007
Posts: 1,129
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,149
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,149
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
Joined: Nov 2009
Posts: 117
Vogon poet
Offline
Vogon poet
Joined: Nov 2009
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!  }

Joined: Nov 2007
Posts: 20
D
Drai Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Nov 2007
Posts: 20
Thanks, works perfectly smile


Link Copied to Clipboard