mirror of https://github.com/SeanOMik/znc-push.git
added support for notification sounds with Pushover API
This commit is contained in:
parent
66a06d465c
commit
79774d694b
6
push.cpp
6
push.cpp
|
@ -109,6 +109,7 @@ class CPushMod : public CModule
|
|||
defaults["username"] = "";
|
||||
defaults["secret"] = "";
|
||||
defaults["target"] = "";
|
||||
defaults["sound"] = "";
|
||||
|
||||
// Condition strings
|
||||
defaults["channel_conditions"] = "all";
|
||||
|
@ -312,6 +313,11 @@ class CPushMod : public CModule
|
|||
{
|
||||
params["device"] = options["target"];
|
||||
}
|
||||
|
||||
if ( options["sound"] != "" )
|
||||
{
|
||||
params["sound"] = options["sound"];
|
||||
}
|
||||
}
|
||||
else if (service == "prowl")
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue