Skip to content

Commit

Permalink
Merge pull request #338 from itsrachelfish/whois-case-sensitivity
Browse files Browse the repository at this point in the history
Fixed case sensitivity bug in client.whois()
  • Loading branch information
jirwin committed Mar 18, 2015
2 parents eec93d2 + 5d77320 commit 605555e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/irc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 605555e

Please sign in to comment.