diff options
Diffstat (limited to 'actions/newnotice.php')
-rw-r--r-- | actions/newnotice.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/actions/newnotice.php b/actions/newnotice.php index cc40f89bc..e8fa832a6 100644 --- a/actions/newnotice.php +++ b/actions/newnotice.php @@ -50,6 +50,15 @@ class NewnoticeAction extends Action { return; } + $inter = new CommandInterpreter(); + + $cmd = $inter->handle_command($user, $text); + + if ($cmd) { + $cmd->execute(new WebChannel()); + return; + } + $notice = Notice::saveNew($user->id, $content, 'web'); if (is_string($notice)) { |