martynsmith/node-irc — pull request #116 by jazzdev (2012-11-02 18:20:35+00:00)
Title: Fix for crash when calling whois with non-existant nick

Fix for this crash:

/Users/jd/coffee/node_modules/irc/lib/irc.js:548
throw err;
^
TypeError: Cannot read property 'nick' of undefined
at Client.whois.callbackWrapper (/Users/jd/coffee/node_modules/irc/lib/irc.js:697:22)
at Client.EventEmitter.emit (events.js:88:17)
at Client. (/Users/jd/coffee/node_modules/irc/lib/irc.js:268:22)
at Client.EventEmitter.emit (events.js:88:17)
at Client.connect (/Users/jd/coffee/node_modules/irc/lib/irc.js:545:22)
at Array.forEach (native)
at Socket.Client.connect (/Users/jd/coffee/node_modules/irc/lib/irc.js:542:15)
at Socket.EventEmitter.emit (events.js:88:17)
at TCP.onread (net.js:392:31)