From f6da7f56625732224bf10237599b8f02d165c7c1 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 3 Dec 2017 19:09:34 -0800 Subject: [PATCH] Prevent /msg to serv@network (currently only abusable by admins) --- PBot/Interpreter.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 2155191a..e4bd79bf 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -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}) {