in reply to net::irc, channel name
A channel doesn't send the /msg, the user does.. as such it's not obvious which channel a user is in when they message the bot.
What you may be able to do is effectively /whois the user and see what channel(s) they are on. However deciding which channel they're referring to (if they're on multiple) could be confusing.
I'd suspect that it'd be simpler to get the user to specify the channel that they want to kick someone from, then verify that they are on that channel and authorised to do so.
Caveat: I'm not a Net::IRC expert, but I use IRC a lot
:)Malach
So, this baby seal walks into a club.....
|
|---|