Multiple PRIVMSG targets
Posted: Mon Apr 14, 2008 5:59 pm
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
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