Interpreter: ignore bot commands from unidentified users in +z channels

This commit is contained in:
Pragmatic Software 2018-08-13 20:06:07 -07:00
parent 93b386b0ca
commit 42f0bb7002
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}