mirror of https://github.com/SeanOMik/znc-push.git
Reindent
This commit is contained in:
parent
1fa27b359c
commit
055fc3981d
34
push.cpp
34
push.cpp
|
@ -303,25 +303,25 @@ class CPushMod : public CModule
|
||||||
params["notification[message]"] = message_content;
|
params["notification[message]"] = message_content;
|
||||||
params["notification[source_url]"] = message_uri;
|
params["notification[source_url]"] = message_uri;
|
||||||
}
|
}
|
||||||
else if (service == "boxcar2")
|
else if (service == "boxcar2")
|
||||||
{
|
{
|
||||||
if (options["secret"] == "")
|
if (options["secret"] == "")
|
||||||
{
|
{
|
||||||
PutModule("Error: secret not set to apikey");
|
PutModule("Error: secret not set to apikey");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
service_host = "new.boxcar.io";
|
service_host = "new.boxcar.io";
|
||||||
service_url = "/api/notifications";
|
service_url = "/api/notifications";
|
||||||
|
|
||||||
params["user_credentials"] = options["secret"];
|
params["user_credentials"] = options["secret"];
|
||||||
params["notification[title]"] = message_title;
|
params["notification[title]"] = message_title;
|
||||||
params["notification[long_message]"] = message_content;
|
params["notification[long_message]"] = message_content;
|
||||||
if ( options["message_sound"] != "" )
|
if ( options["message_sound"] != "" )
|
||||||
{
|
{
|
||||||
params["notification[sound]"] = options["message_sound"];
|
params["notification[sound]"] = options["message_sound"];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if (service == "nma")
|
else if (service == "nma")
|
||||||
{
|
{
|
||||||
if (options["secret"] == "")
|
if (options["secret"] == "")
|
||||||
|
|
Loading…
Reference in New Issue