From 8095aea3d002e41dde1c53262b3dbde8bb9ce412 Mon Sep 17 00:00:00 2001 From: reality Date: Fri, 19 Feb 2016 19:28:01 +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 afcb313..87d53eb 100644 --- a/modules/warning/warning.js +++ b/modules/warning/warning.js @@ -86,7 +86,7 @@ var warning = function(dbot) { }); if(index <= sTimes.length && index >= 0) { - this.db.del('notifies', warns[sTimes[index]], function(err) { + this.db.del('notifies', warns[sTimes[index]].id, function(err) { event.reply(dbot.t('warning_removed')); }); } else {