Prevent /msg to serv@network (currently only abusable by admins)

This commit is contained in:
Pragmatic Software 2017-12-03 19:09:34 -08:00
parent 0468716581
commit f6da7f5662
1 changed files with 1 additions and 1 deletions

View File

@ -507,7 +507,7 @@ sub output_result {
my $to = $1;
if ($to =~ /,/) {
$pbot->{logger}->log("[HACK] Possible HACK ATTEMPT /msg multiple users: [$stuff->{nick}!$stuff->{user}\@$stuff->{host}] [$stuff->{command}] [$line]\n");
} elsif ($to =~ /.*serv$/i) {
} elsif ($to =~ /.*serv(?:@.*)?$/i) {
$pbot->{logger}->log("[HACK] Possible HACK ATTEMPT /msg *serv: [$stuff->{nick}!$stuff->{user}\@$stuff->{host}] [$stuff->{command}] [$line]\n");
} elsif ($line =~ s/^\/me\s+//i) {
if (defined $stuff->{nickoverride}) {