From fa1634d04014655fa331e4d5400734ab2db23296 Mon Sep 17 00:00:00 2001 From: reality Date: Sat, 17 Aug 2013 19:19:09 +0000 Subject: [PATCH] unquiet notifies --- modules/kick/commands.js | 10 ++++++++++ modules/kick/strings.json | 3 +++ 2 files changed, 13 insertions(+) diff --git a/modules/kick/commands.js b/modules/kick/commands.js index 3b679e0..43c2f80 100644 --- a/modules/kick/commands.js +++ b/modules/kick/commands.js @@ -20,6 +20,11 @@ var commands = function(dbot) { var msTimeout = new Date(new Date().getTime() + (minutes * 60000)); dbot.api.timers.addTimeout(msTimeout, function() { this.api.unquiet(server, quietee, channel); + dbot.api.report.notify(server, channel, dbot.t('unquiet_notify', { + 'unquieter': dbot.config.name, + 'channel': channel, + 'quietee': quietee + })); }.bind(this)); event.reply(dbot.t('tquieted', { 'quietee': quietee, @@ -56,6 +61,11 @@ var commands = function(dbot) { this.api.unquiet(server, quietee, channel); event.reply(dbot.t('unquieted', { 'quietee': quietee })); + dbot.api.report.notify(server, channel, dbot.t('unquiet_notify', { + 'unquieter': quieter, + 'channel': channel, + 'quietee': quietee + })); }, '~ckick': function(event) { diff --git a/modules/kick/strings.json b/modules/kick/strings.json index 746fb1a..fcb7ae8 100644 --- a/modules/kick/strings.json +++ b/modules/kick/strings.json @@ -30,6 +30,9 @@ "fr": "{quietee} peut maintenant parler. Rappelle-toi : ne sois pas têtu.", "it": "{quietee} può nuovamente parlare. Ricordati: non essere testardo." }, + "unquiet_notify": { + "en": "Attention: {unquieter} has unquieted {quietee} in {channel}." + }, "kicked_dbot": { "en": "Thou shalt not kick {botname}", "es": "No expulsás {botname}",