return logic tidied up for command interpretation
This commit is contained in:
parent
2bf0ec719d
commit
c5da7306bd
@ -298,8 +298,6 @@ class CommandInterpreter
|
|||||||
$result = new TrackingCommand($user);
|
$result = new TrackingCommand($user);
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
|
||||||
$result = false;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Event::handle('EndInterpretCommand', array($cmd, $arg, $user, &$result));
|
Event::handle('EndInterpretCommand', array($cmd, $arg, $user, &$result));
|
||||||
|
@ -402,9 +402,8 @@ abstract class ImPlugin extends Plugin
|
|||||||
$chan = new IMChannel($this);
|
$chan = new IMChannel($this);
|
||||||
$cmd->execute($chan);
|
$cmd->execute($chan);
|
||||||
return true;
|
return true;
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user