From d1b764d4eca66a65bcf5254ace5d6c39580e5626 Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 19 Feb 2016 19:18:43 +0000 Subject: [PATCH] rookie mistake --- modules/warning/warning.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) {