This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

[SOLVED] Checking the hostmask of last kicked user

Old posts that have not been replied to for several years.
Locked
User avatar
Aron
Halfop
Posts: 86
Joined: Sat Mar 15, 2003 8:35 am

[SOLVED] Checking the hostmask of last kicked user

Post by Aron »

I wrote a script that allows people to use a !banlast command, which bans the user who last left/quitted the channel.
Now, i want to be able to store the hostmask of the user who was last kicked from the channel too, but "bind kick" doesnt record the kicked user's hostmask, and getchanhost only works when the person is on the channel...
Any other ways to do this?

Tia.
Last edited by Aron on Wed Dec 03, 2003 11:45 am, edited 2 times in total.
The best way to start learning is to start helping.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

use bind kick and get getchanhost to get his host.
User avatar
Aron
Halfop
Posts: 86
Joined: Sat Mar 15, 2003 8:35 am

Post by Aron »

......

i just said bind kick doesnt get the host of a kicked user, only the host of the person who kicked.
Getchanhost only works on people on the bot's channels, so its kinda hard to use getchanhost before someone gets kicked, unless its a kick by the bot.

..or am i missing something? :/
The best way to start learning is to start helping.
User avatar
Sir_Fz
Revered One
Posts: 3794
Joined: Sun Apr 27, 2003 3:10 pm
Location: Lebanon
Contact:

Post by Sir_Fz »

isn't the user banned before/after the kick ?
User avatar
Aron
Halfop
Posts: 86
Joined: Sat Mar 15, 2003 8:35 am

Post by Aron »

no, i just want it to trigger on kicks, when the user is NOT banned :)
The best way to start learning is to start helping.
User avatar
GodOfSuicide
Master
Posts: 463
Joined: Mon Jun 17, 2002 8:00 pm
Location: Austria

Post by GodOfSuicide »

AsoAron wrote:i just said bind kick doesnt get the host of a kicked user, only the host of the person who kicked.
a kick bind also returns the "victim" (or whatever you call the var), so use [getchanhost $victim $chan] (or whatever your var is again).
User avatar
Aron
Halfop
Posts: 86
Joined: Sat Mar 15, 2003 8:35 am

Post by Aron »

.... i already said this..

If a user is kicked, he isnt on the channel anymore... :/ How can i EVER use getchanhost, if the user is not on any channels, after he is kicked?
The best way to start learning is to start helping.
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

AsoAron wrote:If a user is kicked, he isnt on the channel anymore... :/ How can i EVER use getchanhost, if the user is not on any channels, after he is kicked?
Did you try it? The bot keeps all info about people leaving a channel untill the binds have been checked/called their commands, so you can use all channel-commands on someone being kicked/quitting/parting a channel
Have you ever read "The Manual"?
User avatar
Aron
Halfop
Posts: 86
Joined: Sat Mar 15, 2003 8:35 am

Post by Aron »

hehe i havent thought of that :D thanks a lot mate, it worked!
The best way to start learning is to start helping.
User avatar
CrazyCat
Revered One
Posts: 1359
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

why don't you make a putserv "WHOIS $nick" and get the returned host?
User avatar
user
 
Posts: 1452
Joined: Tue Mar 18, 2003 9:58 pm
Location: Norway

Post by user »

CrazyCat wrote:why don't you make a putserv "WHOIS $nick" and get the returned host?
Because 'getchanhost' works just fine I guess :P (he should have changed the subject to "solved"
Have you ever read "The Manual"?
Locked