mirror of https://github.com/SeanOMik/znc-push.git
Merge pull request #33 from mingtang/master
Pushover Message URL Title Support
This commit is contained in:
commit
e7fd72248d
|
@ -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 = ""`
|
||||
|
||||
|
|
6
push.cpp
6
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"];
|
||||
|
|
Loading…
Reference in New Issue