diff --git a/lib/PBot/Plugin/AntiAway.pm b/lib/PBot/Plugin/AntiAway.pm index 58e5e499..1fe81064 100644 --- a/lib/PBot/Plugin/AntiAway.pm +++ b/lib/PBot/Plugin/AntiAway.pm @@ -37,7 +37,7 @@ sub punish($self, $msg, $channel, $nick, $user, $host) { $self->{pbot}->{logger}->log("[anti-away] $nick!$user\@$host offense $self->{kick_counter}->{$channel}->{$nick}\n"); if ($self->{kick_counter}->{$channel}->{$nick} == 2) { - $msg .= ' (WARNING: next offense will result in a temp-ban)'; + $msg .= ' (2ND OFFENSE WARNING: next offense will result in a temp-ban)'; } elsif ($self->{kick_counter}->{$channel}->{$nick} > 2) { $msg .= ' (temp ban for repeated offenses)'; } diff --git a/lib/PBot/Plugin/AntiHello.pm b/lib/PBot/Plugin/AntiHello.pm index d54919d9..920807e9 100644 --- a/lib/PBot/Plugin/AntiHello.pm +++ b/lib/PBot/Plugin/AntiHello.pm @@ -14,7 +14,7 @@ use PBot::Imports; sub initialize($self, %conf) { $self->{pbot}->{registry}->add_default('text', 'antihello', 'bad_greetings', - $conf{bad_greetings} // '^\s*(?:[[:punct:]]|\p{Emoticons})*\s*(?:h*e+l+l+o+|h+e+y+a+|y+o+|h*e+n+l+o+|l+o+|h+i+|g+o+d+\s*(d+a+y+|m+o+r+n+i+n+g*|e+v+e+n+i+n+g*|a+f+t+e+r+n+o+n+|n+o+n+)|w*a*s+u+p+|g+[[:punct:]]*d+a+y+|g+r+e+t+s*z*|g+r+e+t+i+n+g+s*|h*o+l+a+|o+i+|h*e+y+|h+a+y+|o*h+a+i+)\s*(?:\s+.{1,10})?\s*(?:[[:punct:]]|\p{Emoticons})*\s*$' + $conf{bad_greetings} // '^\s*(?:[[:punct:]]|\p{Emoticons})*\s*(?:h*e+l+l+o+|h+e+y+a+|y+o+|h*e+n+l+o+|l+o+|h+i+|g+o*d*\s*[[:punct:]]*\s*(d+a+y+|m+o+r+n+i*n*g*|e+v+e+n+i+n+g*|a+f+t+e+r+n+o+n+|n+o+n+)|w*a*s+u+p+|g+[[:punct:]]*d+a+y+|g+r+e+t+s*z*|g+r+e+t+i+n+g+s*|h*o+l+a+|o+i+|h*e+y+|h+a+y+|o*h+a+i+)\s*[[:punct:]]*\s*(?:\s+.{1,15})?\s*(?:[[:punct:]]|\p{Emoticons})*\s*$' ); $self->{pbot}->{registry}->add_default('text', 'antihello', 'kick_msg', 'https://nohello.net/'); @@ -46,7 +46,7 @@ sub punish($self, $msg, $channel, $nick, $user, $host) { } return 0; } elsif ($self->{offense_counter}->{$channel}->{$nick} == 2) { - $msg .= ' (WARNING: next offense will result in a temp-ban)'; + $msg .= ' (2ND OFFENSE WARNING: next offense will result in a temp-ban)'; } elsif ($self->{offense_counter}->{$channel}->{$nick} > 2) { $msg .= ' (temp ban for repeated offenses)'; } diff --git a/lib/PBot/VERSION.pm b/lib/PBot/VERSION.pm index be79f207..c3684a6b 100644 --- a/lib/PBot/VERSION.pm +++ b/lib/PBot/VERSION.pm @@ -25,8 +25,8 @@ use PBot::Imports; # These are set by the /misc/update_version script use constant { BUILD_NAME => "PBot", - BUILD_REVISION => 4777, - BUILD_DATE => "2024-08-07", + BUILD_REVISION => 4778, + BUILD_DATE => "2024-08-10", }; sub initialize {}