From 1b2f01af9494a55d8bd1fb13006f48f0bbf495a2 Mon Sep 17 00:00:00 2001 From: reality Date: Sun, 9 Nov 2014 14:04:04 +0000 Subject: [PATCH] tell user about warn --- modules/warning/warning.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/warning/warning.js b/modules/warning/warning.js index 6de4977..e8a80f9 100644 --- a/modules/warning/warning.js +++ b/modules/warning/warning.js @@ -28,6 +28,14 @@ var warning = function(dbot) { dbot.api.report.notify('warn', server, warner, adminChannel, notifyString); dbot.say(server, adminChannel, notifyString); + var uString = dbot.t('warn_user', { + 'warner': warner.primaryNick, + 'reason': reason, + 'admin_channel': dbot.config.servers[server].admin_channel + }); + + dbot.say(server, warnee.currentNick, uString); + callback(null); }); } else {