mirror of https://github.com/SeanOMik/znc-push.git
Update push.cpp
This commit is contained in:
parent
a432dbf449
commit
333a401e79
10
push.cpp
10
push.cpp
|
@ -431,7 +431,7 @@ class CPushMod : public CModule
|
||||||
params["u"] = message_uri;
|
params["u"] = message_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( options["message_uri_title"] != "" )
|
if (options["message_uri_title"] != "" )
|
||||||
{
|
{
|
||||||
params["ut"] = options["message_uri_title"];
|
params["ut"] = options["message_uri_title"];
|
||||||
}
|
}
|
||||||
|
@ -441,13 +441,12 @@ class CPushMod : public CModule
|
||||||
params["d"] = options["target"];
|
params["d"] = options["target"];
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( options["message_sound"] != "" )
|
if (options["message_sound"] != "" )
|
||||||
{
|
{
|
||||||
params["s"] = options["message_sound"];
|
params["s"] = options["message_sound"];
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (service == "pushalot")
|
else if (service == "pushalot")
|
||||||
{
|
{
|
||||||
if (options["secret"] == "")
|
if (options["secret"] == "")
|
||||||
|
@ -468,12 +467,11 @@ class CPushMod : public CModule
|
||||||
params["Link"] = message_uri;
|
params["Link"] = message_uri;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( options["message_uri_title"] != "" )
|
if (options["message_uri_title"] != "" )
|
||||||
{
|
{
|
||||||
params["LinkTitle"] = options["message_uri_title"];
|
params["LinkTitle"] = options["message_uri_title"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (service == "prowl")
|
else if (service == "prowl")
|
||||||
{
|
{
|
||||||
if (options["secret"] == "")
|
if (options["secret"] == "")
|
||||||
|
@ -563,7 +561,6 @@ class CPushMod : public CModule
|
||||||
params["from"] = message_title;
|
params["from"] = message_title;
|
||||||
params["to"] = options["target"];
|
params["to"] = options["target"];
|
||||||
params["text"] = message_content;
|
params["text"] = message_content;
|
||||||
|
|
||||||
}
|
}
|
||||||
else if (service == "url")
|
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");
|
PutModule("Note: Pushalot requires setting the 'secret' (to user key) (to authorization token) option");
|
||||||
}
|
}
|
||||||
|
|
||||||
else if (value == "prowl")
|
else if (value == "prowl")
|
||||||
{
|
{
|
||||||
PutModule("Note: Prowl requires setting the 'secret' option");
|
PutModule("Note: Prowl requires setting the 'secret' option");
|
||||||
|
|
Loading…
Reference in New Issue