mirror of
https://github.com/reality/dbot.git
synced 2024-11-27 14:29:29 +01:00
Oops [#201]
This commit is contained in:
parent
8be61b746d
commit
35c9975d44
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user