diff --git a/README.md b/README.md index 5a74e7e..e20f010 100644 --- a/README.md +++ b/README.md @@ -248,6 +248,11 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or Message content that will be sent for the push notification. Keyword expansion is performed on this value. +* `message_priority = ""` + + Priority level that will be used for the push notification. + Currently supported only by Pushover.net. + ### Conditions diff --git a/push.cpp b/push.cpp index 94939b3..f3dfe4f 100644 --- a/push.cpp +++ b/push.cpp @@ -117,6 +117,7 @@ class CPushMod : public CModule defaults["message_length"] = "100"; defaults["message_title"] = "{title}"; defaults["message_content"] = "{message}"; + defaults["message_priority"] = "0"; // Notification conditions defaults["away_only"] = "no"; @@ -323,6 +324,11 @@ class CPushMod : public CModule { params["sound"] = options["message_sound"]; } + + if (options["message_priority"] != "") + { + params["priority"] = options["message_priority"]; + } } else if (service == "prowl") {