mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +01:00
Interpreter: ignore bot commands from unidentified users in +z channels
This commit is contained in:
parent
93b386b0ca
commit
42f0bb7002
@ -90,8 +90,8 @@ sub process_line {
|
||||
$flood_threshold, $flood_time_threshold,
|
||||
$pbot->{messagehistory}->{MSG_CHAT}, $stuff) if defined $from;
|
||||
|
||||
if ($stuff->{banned}) {
|
||||
$self->{pbot}->{logger}->log("Disregarding banned user message (channel $from is +z).\n");
|
||||
if ($stuff->{banned} or $stuff->{unidentified}) {
|
||||
$self->{pbot}->{logger}->log("Disregarding banned/unidentified user message (channel $from is +z).\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user