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["username"] = "";
|
||||||
defaults["secret"] = "";
|
defaults["secret"] = "";
|
||||||
defaults["target"] = "";
|
defaults["target"] = "";
|
||||||
|
defaults["sound"] = "";
|
||||||
|
|
||||||
// Condition strings
|
// Condition strings
|
||||||
defaults["channel_conditions"] = "all";
|
defaults["channel_conditions"] = "all";
|
||||||
|
@ -312,6 +313,11 @@ class CPushMod : public CModule
|
||||||
{
|
{
|
||||||
params["device"] = options["target"];
|
params["device"] = options["target"];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ( options["sound"] != "" )
|
||||||
|
{
|
||||||
|
params["sound"] = options["sound"];
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else if (service == "prowl")
|
else if (service == "prowl")
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue