From 6d0a19a53e31f036ea98a4016fea54223e107860 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sun, 13 Apr 2014 17:58:27 +0200 Subject: [PATCH] Add missing getReceiver() in InviteCommand see https://tims.bastelstu.be/forum/index.php/Thread/155-Temproom-Einladung-Falsche-Bezeichnung/ --- file/lib/system/command/commands/InviteCommand.class.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/file/lib/system/command/commands/InviteCommand.class.php b/file/lib/system/command/commands/InviteCommand.class.php index 24fc532..248f013 100644 --- a/file/lib/system/command/commands/InviteCommand.class.php +++ b/file/lib/system/command/commands/InviteCommand.class.php @@ -66,4 +66,11 @@ public function getType() { public function getMessage() { return \wcf\system\WCF::getLanguage()->getDynamicVariable('chat.message.invite.success', array('user' => $this->user, 'room' => $this->room)); } + + /** + * @see \chat\system\command\ICommand::getReceiver() + */ + public function getReceiver() { + return \wcf\system\WCF::getUser()->userID; + } }