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:
parent
9cf4b18538
commit
3d7a98b611
@ -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) {
|
||||
|
@ -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",
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user