diff --git a/modules/warning/warning.js b/modules/warning/warning.js index 3613668..b28e568 100644 --- a/modules/warning/warning.js +++ b/modules/warning/warning.js @@ -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)) {