added support for notification sounds with Pushover API

This commit is contained in:
Ming Tang 2013-03-01 10:47:32 -08:00
parent 66a06d465c
commit 79774d694b
1 changed files with 6 additions and 0 deletions

View File

@ -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")
{ {