From 42f0bb7002106a00c8089eb17e354033b44396cf Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 13 Aug 2018 20:06:07 -0700 Subject: [PATCH] Interpreter: ignore bot commands from unidentified users in +z channels --- PBot/Interpreter.pm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index 327d8002..f81b058f 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -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; }