diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2008-10-04 14:20:28 -0400 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2008-10-04 14:20:28 -0400 |
commit | 7f1639fda15161db0b0b5c6c10824d7d515123f1 (patch) | |
tree | 85db4973c972ecfa9b97cfc70d5a9a4f7d6fb1df /classes | |
parent | 3460da32cb415e29eed3c24a241fdae03a039e74 (diff) |
correct output for Get command
darcs-hash:20081004182028-5ed1f-18e89922d7f59bcb11c784d36f4ed0a104a1c903.gz
Diffstat (limited to 'classes')
-rw-r--r-- | classes/Command.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/classes/Command.php b/classes/Command.php index e5dc59313..9dfa867de 100644 --- a/classes/Command.php +++ b/classes/Command.php @@ -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); } } |