3
0
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:
Pragmatic Software 2018-08-13 20:06:07 -07:00
parent 93b386b0ca
commit 42f0bb7002

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