]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
fix error and output in on and off commands
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 6 Oct 2008 04:12:32 +0000 (00:12 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 6 Oct 2008 04:12:32 +0000 (00:12 -0400)
darcs-hash:20081006041232-5ed1f-830c7ebc8141fae002fead026407f1499126e021.gz

classes/Command.php

index 9dfa867de631ea58c4042ca5eeb6fb785c24c3b4..0795f86afbc12d6f16f75abddd1c609a8b4d8885 100644 (file)
@@ -310,9 +310,9 @@ class OffCommand extends Command {
                        $channel->error($this->user, _("Command not yet implemented."));
                } else {
                        if ($channel->off($this->user)) {
-                               $channel->output(_('Notification off.'));
+                               $channel->output($this->user, _('Notification off.'));
                        } else {
-                               $channel->error(_('Can\'t turn off notification.'));
+                               $channel->error($this->user, _('Can\'t turn off notification.'));
                        }
                }
        }
@@ -330,9 +330,9 @@ class OnCommand extends Command {
                        $channel->error($this->user, _("Command not yet implemented."));
                } else {
                        if ($channel->on($this->user)) {
-                               $channel->output(_('Notification on.'));
+                               $channel->output($this->user, _('Notification on.'));
                        } else {
-                               $channel->error(_('Can\'t turn on notification.'));
+                               $channel->error($this->user, _('Can\'t turn on notification.'));
                        }
                }
        }