From f072147e4e538b6851e3056fe9ff84952424c828 Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sat, 4 Oct 2008 12:32:13 -0400 Subject: add channels and use command interpreter in different channels darcs-hash:20081004163213-5ed1f-684ecb464e843b1bbe456c348e56b40a39a83ecd.gz --- actions/newnotice.php | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'actions') 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)) { -- cgit v1.2.3-54-g00ecf