mirror of https://github.com/SeanOMik/znc-push.git
Remove code for NMA
This commit is contained in:
parent
fa4d2306dd
commit
321a166dca
25
push.cpp
25
push.cpp
|
@ -359,27 +359,6 @@ class CPushMod : public CModule
|
|||
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")
|
||||
{
|
||||
if (options["username"] == "")
|
||||
|
@ -1488,10 +1467,6 @@ class CPushMod : public CModule
|
|||
{
|
||||
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")
|
||||
{
|
||||
PutModule("Note: Pushover requires setting both the 'username' (to user key) and the 'secret' (to application api key) option");
|
||||
|
|
Loading…
Reference in New Issue