mirror of
https://github.com/reality/dbot.git
synced 2025-01-12 21:22:39 +01:00
autoquietwarn
This commit is contained in:
parent
9530bead9c
commit
4aed770b7e
@ -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 }));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user