From c5da7306bdc71beab2866038480ab6aa430a02ff Mon Sep 17 00:00:00 2001 From: Mikael Nordfeldth Date: Tue, 2 Jun 2015 14:25:45 +0200 Subject: [PATCH] return logic tidied up for command interpretation --- lib/commandinterpreter.php | 2 -- lib/implugin.php | 3 +-- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/commandinterpreter.php b/lib/commandinterpreter.php index f6c7518fbd..c546cf0fca 100644 --- a/lib/commandinterpreter.php +++ b/lib/commandinterpreter.php @@ -298,8 +298,6 @@ class CommandInterpreter $result = new TrackingCommand($user); } break; - default: - $result = false; } Event::handle('EndInterpretCommand', array($cmd, $arg, $user, &$result)); diff --git a/lib/implugin.php b/lib/implugin.php index 98fba19911..2da4fa961a 100644 --- a/lib/implugin.php +++ b/lib/implugin.php @@ -402,9 +402,8 @@ abstract class ImPlugin extends Plugin $chan = new IMChannel($this); $cmd->execute($chan); return true; - } else { - return false; } + return false; } /** -- 2.39.5