From: Evan Prodromou Date: Tue, 15 Dec 2009 15:18:27 +0000 (-0500) Subject: add mail notification for dm command results X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=19bb9a04d171fe2a8d87a51c0267c5670cb0f5bf;p=quix0rs-gnu-social.git add mail notification for dm command results --- diff --git a/lib/command.php b/lib/command.php index 222bd76830..b30780bfb1 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.'));