Plugin/AntiHello: update greeting regex

This commit is contained in:
Pragmatic Software 2024-08-07 15:29:17 -07:00
parent dd4be2184c
commit 1986da2a4b
No known key found for this signature in database
GPG Key ID: CC916B6E3C84ECCE
2 changed files with 2 additions and 2 deletions

View File

@ -14,7 +14,7 @@ use PBot::Imports;
sub initialize($self, %conf) { sub initialize($self, %conf) {
$self->{pbot}->{registry}->add_default('text', 'antihello', 'bad_greetings', $self->{pbot}->{registry}->add_default('text', 'antihello', 'bad_greetings',
$conf{bad_greetings} // '^\s*(?:[[:punct:]]|\p{Emoticons})*\s*(?:h*e+l+l+o+|h*e+n+l+o+|l+o+|hi+|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+)\s*(?:everyone|guys|peeps?z?|ppl|people|\s+.{1,20})*\s*(?:[[:punct:]]|\p{Emoticons})*\s*$' $conf{bad_greetings} // '^\s*(?:[[:punct:]]|\p{Emoticons})*\s*(?:h*e+l+l+o+|h*e+n+l+o+|l+o+|hi+|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*$'
); );
$self->{pbot}->{registry}->add_default('text', 'antihello', 'kick_msg', 'https://nohello.net/'); $self->{pbot}->{registry}->add_default('text', 'antihello', 'kick_msg', 'https://nohello.net/');

View File

@ -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 => 4775, BUILD_REVISION => 4776,
BUILD_DATE => "2024-08-07", BUILD_DATE => "2024-08-07",
}; };