summaryrefslogtreecommitdiff
path: root/lib/command.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-12-15 10:18:27 -0500
committerEvan Prodromou <evan@status.net>2009-12-15 10:18:27 -0500
commit19bb9a04d171fe2a8d87a51c0267c5670cb0f5bf (patch)
treea32abf4a63152f3d7d231ed846a2773674a83307 /lib/command.php
parentd40f0931aae912d5cb3be0b034c9302b265a2fa3 (diff)
add mail notification for dm command results
Diffstat (limited to 'lib/command.php')
-rw-r--r--lib/command.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/command.php b/lib/command.php
index 222bd7683..b30780bfb 100644
--- a/lib/command.php
+++ b/lib/command.php
@@ -372,6 +372,7 @@ class MessageCommand extends Command
}
$message = Message::saveNew($this->user->id, $other->id, $this->text, $channel->source());
if ($message) {
+ mail_notify_message($message, $this->user, $other);
$channel->output($this->user, sprintf(_('Direct message to %s sent'), $this->other));
} else {
$channel->error($this->user, _('Error sending direct message.'));