summaryrefslogtreecommitdiff
path: root/classes/Command.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2008-10-04 13:34:27 -0400
committerEvan Prodromou <evan@controlyourself.ca>2008-10-04 13:34:27 -0400
commit4d30c534d97a4bceddb8e426cb850196df7713b2 (patch)
treeb4c72858298ecc473b504d166b4da02e2a2dc4ec /classes/Command.php
parent6406d5f8efe4546c8a864ee2cf91679a9a1b8494 (diff)
different message source per command channel
darcs-hash:20081004173427-5ed1f-2a818562f5aa7143b68a0eab3e9f26cd02926c0b.gz
Diffstat (limited to 'classes/Command.php')
-rw-r--r--classes/Command.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/Command.php b/classes/Command.php
index e049ff8ce..3a64e2fda 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 {