Hi there,
I've been trying to write a module that will detect if the user is sending messages to multiple channels e.g. PRIVMSG #chan1,#chan2 message
I've realised from trying to do this that one of the standard (or documented) hooks is not the way, as it only parses a single channel. After a conversation I've been told that perhaps hooking PRIVMSG itself is the way, but searching provides no example or info how to do this. Can anyone help?
Thanks
Multiple PRIVMSG targets
Re: Multiple PRIVMSG targets
only way to do it that i know of would be to add a command override to PRIVMSG and parse parv[1] to see if it contains a comma, denoting multiple targets