tell user about warn

This commit is contained in:
reality 2014-11-09 14:04:04 +00:00
parent 27c150f877
commit 1b2f01af94

View File

@ -28,6 +28,14 @@ var warning = function(dbot) {
dbot.api.report.notify('warn', server, warner, adminChannel, notifyString); dbot.api.report.notify('warn', server, warner, adminChannel, notifyString);
dbot.say(server, 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); callback(null);
}); });
} else { } else {