added support for message_uri titles via "message_uri_title" option for Pushover.

This commit is contained in:
Ming Tang 2013-03-01 13:58:03 -08:00
parent 5f41d4a3d3
commit 060451b02a
2 changed files with 11 additions and 1 deletions

View File

@ -216,7 +216,11 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
* `message_sound = ""`
If you're using the Pushover.net API, you can specify a <a href="https://pushover.net/api#sounds">specific sound</a> for the notifications.
If you're using Pushover.net, you can specify a <a href="https://pushover.net/api#sounds">specific sound</a> for the notifications.
* `message_uri_title` = ""`
If you're using Pushover.net, you can specify a title for the <strong>message_uri</strong> option.
* `message_uri = ""`

View File

@ -113,6 +113,7 @@ class CPushMod : public CModule
// Notification settings
defaults["message_sound"] = "";
defaults["message_uri"] = "";
defaults["message_uri_title"] = "";
defaults["message_length"] = "100";
defaults["message_title"] = "{title}";
defaults["message_content"] = "{message}";
@ -308,6 +309,11 @@ class CPushMod : public CModule
params["url"] = message_uri;
}
if ( options["message_uri_title"] != "" )
{
params["url_title"] = options["message_uri_title"];
}
if (options["target"] != "")
{
params["device"] = options["target"];