martynsmith/node-irc — pull request #67 by whitman (2011-11-17 11:25:13+00:00)
Title: Emit 'message#' for a channel message

'message' is emitted for both a channel message and a pm. When listening for 'message' I have to do a check to see if it's from a channel or if it's a pm (In my case I can't really use the 'message#channel' event). This can be done by checking if the 'to' argument starts with # but as that check is already done in the library, it's simpler to just add another emit.