correct output for Get command

darcs-hash:20081004182028-5ed1f-18e89922d7f59bcb11c784d36f4ed0a104a1c903.gz
This commit is contained in:
Evan Prodromou 2008-10-04 14:20:28 -04:00
parent 3460da32cb
commit 7f1639fda1

View File

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