mirror of
https://github.com/pragma-/pbot.git
synced 2025-10-14 15:07:22 +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
|
# send public message to channel with cooldown
|
||||||
if ($now - $self->{last_warning} >= 60 * 60) {
|
if ($now - $self->{last_warning} >= 60 * 60) {
|
||||||
$self->{last_warning} = $now;
|
$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
|
# 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;
|
return 0;
|
||||||
} elsif ($data->{offenses} == 2) {
|
} elsif ($data->{offenses} == 2) {
|
||||||
|
@ -25,7 +25,7 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4884,
|
BUILD_REVISION => 4885,
|
||||||
BUILD_DATE => "2025-09-04",
|
BUILD_DATE => "2025-09-04",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user