Remove code for NMA

This commit is contained in:
Jonathan Herlin 2019-03-23 13:11:01 +01:00
parent fa4d2306dd
commit 321a166dca
1 changed files with 0 additions and 25 deletions

View File

@ -359,27 +359,6 @@ class CPushMod : public CModule
params["notification[sound]"] = options["message_sound"]; params["notification[sound]"] = options["message_sound"];
} }
} }
else if (service == "nma")
{
if (options["secret"] == "")
{
PutModule("Error: secret not set");
return;
}
if (options["message_priority"] != "")
{
params["priority"] = options["message_priority"];
}
service_host = "www.notifymyandroid.com";
service_url = "/publicapi/notify";
params["apikey"] = options["secret"];
params["application"] = app;
params["event"] = message_title;
params["description"] = message_content;
params["url"] = message_uri;
}
else if (service == "pushover") else if (service == "pushover")
{ {
if (options["username"] == "") if (options["username"] == "")
@ -1488,10 +1467,6 @@ class CPushMod : public CModule
{ {
PutModule("Note: Boxcar 2 requires setting the 'secret' option"); PutModule("Note: Boxcar 2 requires setting the 'secret' option");
} }
else if (value == "nma")
{
PutModule("Note: NMA requires setting the 'secret' option");
}
else if (value == "pushover") else if (value == "pushover")
{ {
PutModule("Note: Pushover requires setting both the 'username' (to user key) and the 'secret' (to application api key) option"); PutModule("Note: Pushover requires setting both the 'username' (to user key) and the 'secret' (to application api key) option");