From 35c9975d4449d777c46680659d16160786349e4d Mon Sep 17 00:00:00 2001 From: Sam Nicholls Date: Thu, 24 Jan 2013 00:25:54 +0000 Subject: [PATCH] Oops [#201] --- modules/users/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/users/api.js b/modules/users/api.js index 7357ab1..3141166 100644 --- a/modules/users/api.js +++ b/modules/users/api.js @@ -71,7 +71,7 @@ var api = function(dbot) { var user = this.api.resolveUser(server, user, useLowerCase); var possiNicks = [user].concat(this.api.getAliases(server, user)); - if(!_.has(dbot.instance.connections[server].channels[channel], nicks)) return false; + if(!_.has(dbot.instance.connections[server].channels[channel], "nicks")) return false; var onlineNicks = dbot.instance.connections[server].channels[channel].nicks; return _.any(onlineNicks, function(nick) {