]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
return logic tidied up for command interpretation
authorMikael Nordfeldth <mmn@hethane.se>
Tue, 2 Jun 2015 12:25:45 +0000 (14:25 +0200)
committerMikael Nordfeldth <mmn@hethane.se>
Tue, 2 Jun 2015 12:25:45 +0000 (14:25 +0200)
lib/commandinterpreter.php
lib/implugin.php

index f6c7518fbd8e9c6b93cae6300095680518ecd45b..c546cf0fca94ca34f500a804ad34868981f93f83 100644 (file)
@@ -298,8 +298,6 @@ class CommandInterpreter
                     $result = new TrackingCommand($user);
                 }
                 break;
-            default:
-                $result = false;
             }
 
             Event::handle('EndInterpretCommand', array($cmd, $arg, $user, &$result));
index 98fba19911ebe8d8ffac6162089fe7c664e4bc4b..2da4fa961a6cf4962a1dafbdcbb80b72235334b4 100644 (file)
@@ -402,9 +402,8 @@ abstract class ImPlugin extends Plugin
             $chan = new IMChannel($this);
             $cmd->execute($chan);
             return true;
-        } else {
-            return false;
         }
+        return false;
     }
 
     /**