]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - classes/Command.php
different message source per command channel
[quix0rs-gnu-social.git] / classes / Command.php
index e049ff8cefcd8f42d34f16f0c33f95c339f5701c..3a64e2fdaf6ab90569b5597a1154413603953f82 100644 (file)
@@ -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 {