From 92c045d8c7669a6aa3590c4d861a0b18d4ce375d Mon Sep 17 00:00:00 2001 From: reality Date: Tue, 12 Apr 2016 19:59:08 +0000 Subject: [PATCH] fix object object nonsense --- modules/kick/kick.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/kick/kick.js b/modules/kick/kick.js index 59a9f5a..a8620d1 100644 --- a/modules/kick/kick.js +++ b/modules/kick/kick.js @@ -79,7 +79,7 @@ var kick = function(dbot) { 'quietee': quietee, 'minutes': duration })); - dbot.api.report.notify('quiet', server, quieter, channel, + dbot.api.report.notify('quiet', server, quieter.primaryNick, channel, dbot.t('tquiet_notify', { 'minutes': duration, 'quieter': quieter.primaryNick, @@ -89,9 +89,9 @@ var kick = function(dbot) { ); } else { callback(dbot.t('quieted', { 'quietee': quietee })); - dbot.api.report.notify('quiet', server, quieter, channel, + dbot.api.report.notify('quiet', server, quieter.primaryNick, channel, dbot.t('quiet_notify', { - 'quieter': quieter, + 'quieter': quieter.primaryNick, 'quietee': quietee, 'reason': reason }), false, quietee);