Whether or not it is a private query message or a channel message is only
obvious by looking at the target field of it; if it starts with a #, it is
a channel message.
Also handle ACTION events (/me slaps foo with a large trout), and change
the type to CTCP_-types if applicable.
Handle QUERY and CHAN messages (PRIVMSG).
Whether or not it is a private query message or a channel message is only obvious by looking at the target field of it; if it starts with a #, it is a channel message.
Also handle ACTION events (/me slaps foo with a large trout), and change the type to CTCP_-types if applicable.