mirror of https://github.com/SeanOMik/znc-push.git
Merge pull request #73 from terminalmage/nma-message-priority
Pass message_priority to NMA
This commit is contained in:
commit
d614b57c0e
|
@ -273,7 +273,7 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
|
||||||
* `message_priority = ""`
|
* `message_priority = ""`
|
||||||
|
|
||||||
Priority level that will be used for the push notification.
|
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 = ""`
|
* `message_sound = ""`
|
||||||
|
|
||||||
|
|
4
push.cpp
4
push.cpp
|
@ -317,6 +317,10 @@ class CPushMod : public CModule
|
||||||
PutModule("Error: secret not set");
|
PutModule("Error: secret not set");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (options["message_priority"] != "")
|
||||||
|
{
|
||||||
|
params["priority"] = options["message_priority"];
|
||||||
|
}
|
||||||
|
|
||||||
service_host = "www.notifymyandroid.com";
|
service_host = "www.notifymyandroid.com";
|
||||||
service_url = "/publicapi/notify";
|
service_url = "/publicapi/notify";
|
||||||
|
|
Loading…
Reference in New Issue