summaryrefslogtreecommitdiff
path: root/actions
diff options
context:
space:
mode:
Diffstat (limited to 'actions')
-rw-r--r--actions/newnotice.php9
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)) {