mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-23 02:24:25 +01:00
Prevent /msg to serv@network (currently only abusable by admins)
This commit is contained in:
parent
0468716581
commit
f6da7f5662
@ -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}) {
|
||||
|
Loading…
Reference in New Issue
Block a user