mIRC Homepage
Posted By: OrionsBelt Kick protection - 11/05/06 08:35 PM
Yes, another question on this subject crazy

It seems there are two kinds of kicks possible.
One using mIRC and one using channel services.

Now, I created a reponse script for when I'm being kicked and/or banned. All working fine as long as the kick is done trough mIRC.

When using the channel services option, $nick returns the chan serv nick, instead of the guy that actually initiated the kick.

The kick message does mention the authname of the guy, and I am able to retreive this authname.... but the authname is not always the same as users current nick.

Is there a way to retreive the current nick of a user, using his authnick?

Thx for the help smile
Posted By: SladeKraven Re: Kick protection - 11/05/06 10:20 PM
What's the ChanServ notice you get? Regarding the kicking.

Just simply use an On Notice event and work from that. smile
Posted By: OrionsBelt Re: Kick protection - 12/05/06 05:25 AM
=23:12:17= * You were kicked by P ((authnick) reason)

Thats's what it tells me.
I am able to take the authnick from this line, but like I said, sometimes the authnick is not the same as the nickname.

A "whois raw" returns both the authnick and the current nickname. Isn't there a way to use that?
Posted By: Abstract Re: Kick protection - 12/05/06 01:24 PM
Uhm, not sure it can be done unless you have some special privileges, like being oper and having access to debug of every command that users write to chan service.

Raw would be useful if you could make whois to the authname, and it returned authname and actual nick, but it makes no sense because the authname supposedly "isn't" on IRC at this time.

Also creating a hash list where your elements would be combinations of authname and actualname, would't work most time, because if the nick was changed before you joined the channel, it wouldn't detect it.

Is there any other way to know who kicked by chan service someone? like a notice from chan serv to channel?
Posted By: OrionsBelt Re: Kick protection - 12/05/06 08:54 PM
Hmmm, bummer....

Nobody else got anymore idea's ?
Obviously my protection aint what it should be, since people can easily find the flaw in my scripts smirk
Posted By: MikeChat Re: Kick protection - 12/05/06 09:59 PM
Click
Posted By: OrionsBelt Re: Kick protection - 12/05/06 10:01 PM
Uhmmm.....


We cannot proceed.

You must be logged in to use the search engine.

Please use your back button to return to the previous page.
Posted By: MikeChat Re: Kick protection - 13/05/06 01:29 AM
hmm, ok, use the search feature on the forum for the term protection, expand to 5 years and set it to the scripts and popups
Posted By: OrionsBelt Re: Kick protection - 13/05/06 10:43 AM
Well, I just went trough all 500 out of the 500 results, but all kick protection scripts I see are based on the nick of the user.

Code:
on *:KICK:#: {
  if ($knick == $me) {
    ajinvite on
    ;[color:blue]P is the channel service bot, like chanserv etc. [/color] 
    msg P invite #
    msg P ban # $nick Mess with the best, die like the rest!
    timer5 1 10 msg P unban # $nick
  }
}


This is my current script. It works fine as long as its a user kicking me.
When the kick is done trough P (chan serv) I start kicking the chanserv thing....
Really, I think there is no solution for this
Posted By: chrischris Re: Kick protection - 14/05/06 03:43 PM
On many servers, you can get the Nickname for the Authnick when using the /chanserv names #channel command. That person has to be on the channel, but - assuming that person is telling Chanserv to kick you - it probably is. You'd then need to programm a script that can handle the text from chanserv, look for the authnick, get the currentnick and take action.

On GameSurge for example, the format is
-ChanServ- Users on #channel: 100:Currentnick1(Authnick1) 200:Currentnick2(Authnick2) etc.

It would be nice if you could post your script here.

~Chris
© mIRC Discussion Forums