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 --- classes/Command.php | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'classes/Command.php') diff --git a/classes/Command.php b/classes/Command.php index 1a6d7cc06..3e2afec6c 100644 --- a/classes/Command.php +++ b/classes/Command.php @@ -299,7 +299,11 @@ class OffCommand extends Command { if ($other) { $channel->error($this->user, _("Command not yet implemented.")); } else { - $channel->off($this->user); + if ($channel->off($this->user)) { + $channel->output(_('Notification off.')); + } else { + $channel->error(_('Can\'t turn off notification.')); + } } } } @@ -315,7 +319,11 @@ class OnCommand extends Command { if ($other) { $channel->error($this->user, _("Command not yet implemented.")); } else { - $channel->on($this->user); + if ($channel->on($this->user)) { + $channel->output(_('Notification on.')); + } else { + $channel->error(_('Can\'t turn on notification.')); + } } } } -- cgit v1.2.3-54-g00ecf