Update push.cpp

This commit is contained in:
Kevin Siml 2017-02-27 09:16:41 +01:00 committed by GitHub
parent a432dbf449
commit 333a401e79
1 changed files with 39 additions and 43 deletions

View File

@ -431,7 +431,7 @@ class CPushMod : public CModule
params["u"] = message_uri;
}
if ( options["message_uri_title"] != "" )
if (options["message_uri_title"] != "" )
{
params["ut"] = options["message_uri_title"];
}
@ -441,13 +441,12 @@ class CPushMod : public CModule
params["d"] = options["target"];
}
if ( options["message_sound"] != "" )
if (options["message_sound"] != "" )
{
params["s"] = options["message_sound"];
}
}
else if (service == "pushalot")
{
if (options["secret"] == "")
@ -468,12 +467,11 @@ class CPushMod : public CModule
params["Link"] = message_uri;
}
if ( options["message_uri_title"] != "" )
if (options["message_uri_title"] != "" )
{
params["LinkTitle"] = options["message_uri_title"];
}
}
else if (service == "prowl")
{
if (options["secret"] == "")
@ -563,7 +561,6 @@ class CPushMod : public CModule
params["from"] = message_title;
params["to"] = options["target"];
params["text"] = message_content;
}
else if (service == "url")
{
@ -1427,7 +1424,6 @@ class CPushMod : public CModule
{
PutModule("Note: Pushalot requires setting the 'secret' (to user key) (to authorization token) option");
}
else if (value == "prowl")
{
PutModule("Note: Prowl requires setting the 'secret' option");