formatting cleanup from #72

This commit is contained in:
John Reese 2014-02-19 11:12:36 -08:00
parent 326da4980b
commit 5b4ea7d028
1 changed files with 14 additions and 15 deletions

View File

@ -410,7 +410,7 @@ class CPushMod : public CModule
params["image"] = "https://raw2.github.com/jreese/znc-push/master/logo.png";
params["sender"] = "ZNC Push";
}
else if (service == "faast")
else if (service == "faast")
{
if (options["secret"] == "")
{
@ -422,7 +422,7 @@ class CPushMod : public CModule
service_url = "/account/notifications.json";
params["user_credentials"] = options["secret"];
params["notification[title]"] = message_title;
params["notification[title]"] = message_title;
params["notification[subtitle]"] = context;
params["notification[message]"] = message_content;
params["notification[long_message]"] = message_content;
@ -431,12 +431,12 @@ class CPushMod : public CModule
{
params["notification[sound]"] = options["message_sound"];
}
if ( options["message_uri"] != "" )
{
params["notification[run_command]"] = options["message_uri"];
}
if ( options["message_uri"] != "" )
{
params["notification[run_command]"] = options["message_uri"];
}
}
else if (service == "url")
else if (service == "url")
{
if (options["message_uri"] == "")
{
@ -1147,11 +1147,10 @@ class CPushMod : public CModule
{
PutModule("Note: Airgram requires setting the 'target' with the email address of the recipient");
}
else if (value == "faast")
{
PutModule("Note: Faast requires setting the secret to your apikey");
}
else if (value == "faast")
{
PutModule("Note: Faast requires setting the secret to your apikey");
}
else
{
PutModule("Error: unknown service name");