mirror of https://github.com/SeanOMik/znc-push.git
Merge pull request #246 from Jonher937/patch-1
NMA is no longer operational
This commit is contained in:
commit
68850f02c3
|
@ -13,7 +13,6 @@ conditions. ZNC Push current supports the following services:
|
||||||
|
|
||||||
* [Boxcar][]
|
* [Boxcar][]
|
||||||
* [Boxcar 2][]
|
* [Boxcar 2][]
|
||||||
* [Notify My Android][] (NMA)
|
|
||||||
* [Pushover][]
|
* [Pushover][]
|
||||||
* [Pushsafer][]
|
* [Pushsafer][]
|
||||||
* [Prowl][]
|
* [Prowl][]
|
||||||
|
@ -243,7 +242,6 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
|
||||||
Possible values include:
|
Possible values include:
|
||||||
|
|
||||||
* `boxcar`
|
* `boxcar`
|
||||||
* `nma`
|
|
||||||
* `pushover`
|
* `pushover`
|
||||||
* `pushsafer`
|
* `pushsafer`
|
||||||
* `prowl`
|
* `prowl`
|
||||||
|
@ -539,7 +537,6 @@ from me and not from my employer. See the `LICENSE` file for details.
|
||||||
|
|
||||||
[Boxcar]: http://boxcar.io
|
[Boxcar]: http://boxcar.io
|
||||||
[Boxcar 2]: http://boxcar.io
|
[Boxcar 2]: http://boxcar.io
|
||||||
[Notify My Android]: http://www.notifymyandroid.com
|
|
||||||
[Pushover]: http://pushover.net
|
[Pushover]: http://pushover.net
|
||||||
[Pushsafer]: http://www.pushsafer.com
|
[Pushsafer]: http://www.pushsafer.com
|
||||||
[Prowl]: http://www.prowlapp.com
|
[Prowl]: http://www.prowlapp.com
|
||||||
|
|
25
push.cpp
25
push.cpp
|
@ -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");
|
||||||
|
|
Loading…
Reference in New Issue