different message source per command channel
darcs-hash:20081004173427-5ed1f-2a818562f5aa7143b68a0eab3e9f26cd02926c0b.gz
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user