Merge pull request #33 from mingtang/master

Pushover Message URL Title Support
This commit is contained in:
John Reese 2013-03-01 14:29:09 -08:00
commit e7fd72248d
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"];