totallymike/ircnode — Issue #16: !PRIVMSG causes the bot to crash
Author: thatvalterguy
Created: 2012-02-25 20:22:01+00:00
State: open
Labels: Bug (major)

If someone writes `!PRIVMSG` in the chat, the bot will crash trying to parse the command. Bot output:

```
:foobar!~foobar@foo.bar.com PRIVMSG #channel :!PRIVMSG Bye.

{ nick: 'foobar',
user: '~foobar',
host: 'foo.bar.com',
channel: '#channel',
cmd: 'PRIVMSG',
params: [ 'Bye.' ],
data: 'foobar!~foobar@foo.bar.com PRIVMSG #channel :!PRIVMSG Bye.' }

/home/valterguy/ircnode/client.js:199
if (data[data.indexOf(':') + 1] === irc.command_char) {
^
TypeError: Object #