5thWall / WallBot_hubot

0 stars 0 forks source link

Wallbot dies on certain input. #1

Open 5thWall opened 10 years ago

5thWall commented 10 years ago
/home/andy/WallBot/node_modules/hubot-irc/node_modules/irc/lib/irc.js:637
                    throw err;
                          ^
TypeError: Cannot read property '0' of undefined
  at Client.<anonymous> (/home/andy/WallBot/node_modules/hubot-irc/node_modules/irc/lib/irc.js:468:25)
  at Client.EventEmitter.emit (events.js:95:17)
  at /home/andy/WallBot/node_modules/hubot-irc/node_modules/irc/lib/irc.js:634:22
  at Array.forEach (native)
  at Socket.<anonymous> (/home/andy/WallBot/node_modules/hubot-irc/node_modules/irc/lib/irc.js:631:15)
  at Socket.EventEmitter.emit (events.js:95:17)
  at Socket.<anonymous> (_stream_readable.js:746:14)
  at Socket.EventEmitter.emit (events.js:92:17)
  at emitReadable_ (_stream_readable.js:408:10)
  at emitReadable (_stream_readable.js:404:5)
  at readableAddChunk (_stream_readable.js:165:9)
  at Socket.Readable.push (_stream_readable.js:127:10)
  at TCP.onread (net.js:526:21)
5thWall commented 10 years ago

I suspect some color code is being sent, which the irc adapter strips before processing. Leaving null input for the remainder of the message which then leads to an error.