From d64375ca501005c9a432ffebeb142da09de8d0bb Mon Sep 17 00:00:00 2001 From: reality Date: Mon, 28 May 2018 14:35:11 +0000 Subject: [PATCH] sasl hint --- modules/kill_namespam/kill_namespam.js | 5 +++-- modules/kill_namespam/strings.json | 3 +++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/kill_namespam/kill_namespam.js b/modules/kill_namespam/kill_namespam.js index 6f952a2..52c20f8 100644 --- a/modules/kill_namespam/kill_namespam.js +++ b/modules/kill_namespam/kill_namespam.js @@ -59,7 +59,7 @@ var kill_namespam = function(dbot) { 'user': event.user, 'channel': event.channel, 'action': this.config.action - }); + }) + ' ' + dbot.t('sasl_hint'); naughty = true; } @@ -70,7 +70,7 @@ var kill_namespam = function(dbot) { 'channel': event.channel, 'action': this.config.action, 'sensitivity': this.config.sensitivity - }); + }) + ' ' + dbot.t('sasl_hint'); naughty = true; } @@ -85,6 +85,7 @@ var kill_namespam = function(dbot) { default: break; } + dbot.api.report.notify('spam', event.server, event.user, event.channel, message, event.host, event.user); } } else if (event.action == 'JOIN') { diff --git a/modules/kill_namespam/strings.json b/modules/kill_namespam/strings.json index c432f25..ea93413 100644 --- a/modules/kill_namespam/strings.json +++ b/modules/kill_namespam/strings.json @@ -10,5 +10,8 @@ }, "clikill_spared": { "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." } }