3
0
mirror of https://github.com/reality/dbot.git synced 2024-12-25 12:12:35 +01:00

sasl hint

This commit is contained in:
reality 2018-05-28 14:35:11 +00:00
parent a4697e8d36
commit d64375ca50
2 changed files with 6 additions and 2 deletions

View File

@ -59,7 +59,7 @@ var kill_namespam = function(dbot) {
'user': event.user, 'user': event.user,
'channel': event.channel, 'channel': event.channel,
'action': this.config.action 'action': this.config.action
}); }) + ' ' + dbot.t('sasl_hint');
naughty = true; naughty = true;
} }
@ -70,7 +70,7 @@ var kill_namespam = function(dbot) {
'channel': event.channel, 'channel': event.channel,
'action': this.config.action, 'action': this.config.action,
'sensitivity': this.config.sensitivity 'sensitivity': this.config.sensitivity
}); }) + ' ' + dbot.t('sasl_hint');
naughty = true; naughty = true;
} }
@ -85,6 +85,7 @@ var kill_namespam = function(dbot) {
default: break; default: break;
} }
dbot.api.report.notify('spam', event.server, event.user, event.channel, message, event.host, event.user); dbot.api.report.notify('spam', event.server, event.user, event.channel, message, event.host, event.user);
} }
} else if (event.action == 'JOIN') { } else if (event.action == 'JOIN') {

View File

@ -10,5 +10,8 @@
}, },
"clikill_spared": { "clikill_spared": {
"en": "{user} spared from clikill matched pattern: /{pattern}/" "en": "{user} spared from clikill matched pattern: /{pattern}/"
},
"sasl_hint": {
"en": "You have been killed by our spam filter. You can avoid broad VPN filters by using SASL."
} }
} }