3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-24 19:52:36 +01:00

Merge pull request #203 from SamStudio8/master

Oops [#201]
This commit is contained in:
Sam Nicholls 2013-01-23 16:26:19 -08:00
commit 7df5d41f18

View File

@ -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) {