3
0
mirror of https://github.com/reality/dbot.git synced 2025-01-12 21:22:39 +01:00

autoquietwarn

This commit is contained in:
reality 2014-06-26 22:19:18 +00:00
parent 9530bead9c
commit 4aed770b7e

View File

@ -56,6 +56,12 @@ var commands = function(dbot) {
}
this.api.quiet(server, host, channel);
if(reason !== "N/A") {
dbot.api.warning.warn(server, event.rUser, quietee,
'Quieted in ' + channel + ' for ' + reason, channel,
function() {});
}
} else {
event.reply(dbot.t('no_user', { 'user': quietee }));
}