From 1d2d057d453e93c51a6286bc1f5a74cb2b000d53 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 9 Dec 2017 13:26:20 -0800 Subject: [PATCH] Properly flag whether a command was processed and interpreted --- PBot/Interpreter.pm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/PBot/Interpreter.pm b/PBot/Interpreter.pm index cfed610b..947da3fe 100644 --- a/PBot/Interpreter.pm +++ b/PBot/Interpreter.pm @@ -189,7 +189,8 @@ sub process_line { $stuff->{preserve_whitespace} = $preserve_whitespace; $stuff->{result} = $self->interpret($stuff); - $processed++ if $self->handle_result($stuff); + $self->handle_result($stuff); + $processed++; } return $processed; }