]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
add mail notification for dm command results
authorEvan Prodromou <evan@status.net>
Tue, 15 Dec 2009 15:18:27 +0000 (10:18 -0500)
committerEvan Prodromou <evan@status.net>
Tue, 15 Dec 2009 15:18:27 +0000 (10:18 -0500)
lib/command.php

index 222bd768306029928756f1e8bb48e600f96f62fa..b30780bfb146e5546f2c341f769b19ff0b02bda9 100644 (file)
@@ -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.'));