Page 1 of 1

Multiple PRIVMSG targets

Posted: Mon Apr 14, 2008 5:59 pm
by xnemesis
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?


Re: Multiple PRIVMSG targets

Posted: Sat Apr 19, 2008 4:05 pm
by Resident
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