forked from GitHub/dbot
tell user about warn
This commit is contained in:
parent
27c150f877
commit
1b2f01af94
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user