X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=classes%2FCommand.php;fp=classes%2FCommand.php;h=3a64e2fdaf6ab90569b5597a1154413603953f82;hb=4d30c534d97a4bceddb8e426cb850196df7713b2;hp=e049ff8cefcd8f42d34f16f0c33f95c339f5701c;hpb=6406d5f8efe4546c8a864ee2cf91679a9a1b8494;p=quix0rs-gnu-social.git diff --git a/classes/Command.php b/classes/Command.php index e049ff8cef..3a64e2fdaf 100644 --- a/classes/Command.php +++ b/classes/Command.php @@ -202,7 +202,7 @@ class MessageCommand extends Command { $channel->error($this->user, _('Don\'t send a message to yourself; just say it to yourself quietly instead.')); return; } - $message = Message::saveNew($this->user->id, $other->id, $body, 'xmpp'); + $message = Message::saveNew($this->user->id, $other->id, $this->text, $channel->source()); if ($message) { $channel->output($this->user, sprintf(_('Direct message to %s sent'), $this->other)); } else {