diff --git a/modules/users/api.js b/modules/users/api.js index 3141166..a5df678 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)) return false; var onlineNicks = dbot.instance.connections[server].channels[channel].nicks; return _.any(onlineNicks, function(nick) {