diff --git a/lib/irc.js b/lib/irc.js index 104964e9..9bc96d3e 100644 --- a/lib/irc.js +++ b/lib/irc.js @@ -977,7 +977,7 @@ Client.prototype._speak = function(kind, target, text) { Client.prototype.whois = function(nick, callback) { if (typeof callback === 'function') { var callbackWrapper = function(info) { - if (info.nick == nick) { + if (info.nick.toLowerCase() == nick.toLowerCase()) { this.removeListener('whois', callbackWrapper); return callback.apply(this, arguments); }