Merge pull request #246 from Jonher937/patch-1

NMA is no longer operational
This commit is contained in:
John Reese 2019-03-23 10:42:36 -07:00 committed by GitHub
commit 68850f02c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 28 deletions

View File

@ -13,7 +13,6 @@ conditions. ZNC Push current supports the following services:
* [Boxcar][]
* [Boxcar 2][]
* [Notify My Android][] (NMA)
* [Pushover][]
* [Pushsafer][]
* [Prowl][]
@ -243,7 +242,6 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
Possible values include:
* `boxcar`
* `nma`
* `pushover`
* `pushsafer`
* `prowl`
@ -539,7 +537,6 @@ from me and not from my employer. See the `LICENSE` file for details.
[Boxcar]: http://boxcar.io
[Boxcar 2]: http://boxcar.io
[Notify My Android]: http://www.notifymyandroid.com
[Pushover]: http://pushover.net
[Pushsafer]: http://www.pushsafer.com
[Prowl]: http://www.prowlapp.com

View File

@ -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");