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.
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.
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