Merge pull request #73 from terminalmage/nma-message-priority

Pass message_priority to NMA
This commit is contained in:
John Reese 2014-02-19 11:16:00 -08:00
commit d614b57c0e
2 changed files with 5 additions and 1 deletions

View File

@ -273,7 +273,7 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
* `message_priority = ""`
Priority level that will be used for the push notification.
Currently supported only by Pushover.net.
Currently supported only by Pushover.net and Notify My Android.
* `message_sound = ""`

View File

@ -317,6 +317,10 @@ class CPushMod : public CModule
PutModule("Error: secret not set");
return;
}
if (options["message_priority"] != "")
{
params["priority"] = options["message_priority"];
}
service_host = "www.notifymyandroid.com";
service_url = "/publicapi/notify";