]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct output for Get command
authorEvan Prodromou <evan@controlyourself.ca>
Sat, 4 Oct 2008 18:20:28 +0000 (14:20 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Sat, 4 Oct 2008 18:20:28 +0000 (14:20 -0400)
darcs-hash:20081004182028-5ed1f-18e89922d7f59bcb11c784d36f4ed0a104a1c903.gz

classes/Command.php

index e5dc59313d16edeee58d1136cf96076b06292a74..9dfa867de631ea58c4042ca5eeb6fb785c24c3b4 100644 (file)
@@ -228,8 +228,10 @@ class GetCommand extends Command {
        }
        
        function execute($channel) {
-               $target = 
-                 common_relative_profile($this->user, common_canonical_nickname($this->other));
+               $target_nickname = common_canonical_nickname($this->other);
+               
+               $target =
+                 common_relative_profile($this->user, $target_nickname);
 
                if (!$target) {
                        $channel->error($this->user, _('No such user.'));
@@ -241,6 +243,7 @@ class GetCommand extends Command {
                        return;
                }
                $notice_content = $notice->content;
+               
                $channel->output($this->user, $target_nickname . ": " . $notice_content);
        }
 }