Multiple PRIVMSG targets

These are old archives. They are kept for historic purposes only.
Post Reply
xnemesis
Posts: 7
Joined: Sun Feb 04, 2007 9:36 pm

Multiple PRIVMSG targets

Post by xnemesis » 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

Resident
Posts: 2
Joined: Thu Dec 20, 2007 7:31 pm

Re: Multiple PRIVMSG targets

Post by Resident » Sat Apr 19, 2008 4:05 pm

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

Post Reply