mirror of https://github.com/pragma-/pbot.git
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;
|
my $to = $1;
|
||||||
if ($to =~ /,/) {
|
if ($to =~ /,/) {
|
||||||
$pbot->{logger}->log("[HACK] Possible HACK ATTEMPT /msg multiple users: [$stuff->{nick}!$stuff->{user}\@$stuff->{host}] [$stuff->{command}] [$line]\n");
|
$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");
|
$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) {
|
} elsif ($line =~ s/^\/me\s+//i) {
|
||||||
if (defined $stuff->{nickoverride}) {
|
if (defined $stuff->{nickoverride}) {
|
||||||
|
|
Loading…
Reference in New Issue