diff --git a/README.md b/README.md index 778302f..5a74e7e 100644 --- a/README.md +++ b/README.md @@ -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 specific sound for the notifications. + If you're using Pushover.net, you can specify a specific sound for the notifications. + +* `message_uri_title` = ""` + + If you're using Pushover.net, you can specify a title for the message_uri option. * `message_uri = ""` diff --git a/push.cpp b/push.cpp index 79e71cf..94939b3 100644 --- a/push.cpp +++ b/push.cpp @@ -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"];