3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-09-08 21:17:25 +02:00

Plugin/AntiHello: remove initial ban warning

This commit is contained in:
Pragmatic Software 2025-09-04 10:26:02 -07:00
parent 9cf4b18538
commit 3d7a98b611
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 3 additions and 3 deletions

View File

@ -64,11 +64,11 @@ sub punish($self, $msg, $channel, $nick, $user, $host) {
# send public message to channel with cooldown
if ($now - $self->{last_warning} >= 60 * 60) {
$self->{last_warning} = $now;
$self->{pbot}->{conn}->privmsg($channel, "Please do not send stand-alone channel greeting messages; include your question/statement along with the greeting. For more info, see https://nohello.net/ (repeated offenses will result in an automatic ban)");
$self->{pbot}->{conn}->privmsg($channel, "Please do not send stand-alone channel greeting messages; include your question/statement along with the greeting. For more info, see https://nohello.net/");
}
# always send private message to offender
$self->{pbot}->{conn}->privmsg($nick, "$nick: ($channel) Please do not send stand-alone channel greeting messages; include your question/statement along with the greeting. For more info, see https://nohello.net/ (repeated offenses will result in an automatic ban)");
$self->{pbot}->{conn}->privmsg($nick, "$nick: ($channel) Please do not send stand-alone channel greeting messages; include your question/statement along with the greeting. For more info, see https://nohello.net/");
return 0;
} elsif ($data->{offenses} == 2) {

View File

@ -25,7 +25,7 @@ use PBot::Imports;
# These are set by the /misc/update_version script
use constant {
BUILD_NAME => "PBot",
BUILD_REVISION => 4884,
BUILD_REVISION => 4885,
BUILD_DATE => "2025-09-04",
};