rookie mistake

This commit is contained in:
reality 2016-02-19 19:18:43 +00:00
parent badf17b0ec
commit d1b764d4ec

View File

@ -73,7 +73,7 @@ var warning = function(dbot) {
dbot.api.users.getUserAliases(warnee.id, function(err, aliases) {
var alia = aliases.push(warnee.primaryNick);
this.db.search('notifies', {
'server': warnee.id,
'server': event.server,
'type': 'warn'
}, function(result) {
if(_.include(alia, result.target)) {