mIRC Home    About    Download    Register    News    Help

Print Thread
#148921 11/05/06 08:35 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
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

#148922 11/05/06 10:20 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
What's the ChanServ notice you get? Regarding the kicking.

Just simply use an On Notice event and work from that. smile

#148923 12/05/06 05:25 AM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
=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?

#148924 12/05/06 01:24 PM
Joined: May 2006
Posts: 25
A
Ameglian cow
Offline
Ameglian cow
A
Joined: May 2006
Posts: 25
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?


==================
Abstraction is art.
#148925 12/05/06 08:54 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
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

#148926 12/05/06 09:59 PM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245

#148927 12/05/06 10:01 PM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
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.

#148928 13/05/06 01:29 AM
Joined: Dec 2002
Posts: 1,245
M
Hoopy frood
Offline
Hoopy frood
M
Joined: Dec 2002
Posts: 1,245
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

#148929 13/05/06 10:43 AM
Joined: Apr 2006
Posts: 464
O
Fjord artisan
OP Offline
Fjord artisan
O
Joined: Apr 2006
Posts: 464
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

Last edited by OrionsBelt; 13/05/06 11:20 AM.
#148930 14/05/06 03:43 PM
Joined: Apr 2006
Posts: 11
C
Pikka bird
Offline
Pikka bird
C
Joined: Apr 2006
Posts: 11
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


Link Copied to Clipboard