mirror of https://github.com/SeanOMik/znc-push.git
Cleanup and update docs
This commit is contained in:
parent
128f727b83
commit
49d8bb3a0a
|
@ -11,6 +11,7 @@ conditions. ZNC Push current supports the following services:
|
|||
* [Pushover][]
|
||||
* [Prowl][]
|
||||
* [Supertoasty][]
|
||||
* [PushBullet][]
|
||||
* Custom URL GET requests
|
||||
|
||||
This project is still a Work In Progress, but should be functional enough and stable enough
|
||||
|
@ -190,6 +191,7 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
|
|||
* "pushover"
|
||||
* "prowl"
|
||||
* "supertoasty"
|
||||
* "pushbullet"
|
||||
* "url"
|
||||
|
||||
* `username = ""`
|
||||
|
@ -202,7 +204,7 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
|
|||
|
||||
Authentication token for push notifications.
|
||||
|
||||
This option must be set when using Notifo, Notify My Android, Pushover, Prowl or Supertoasty.
|
||||
This option must be set when using Notifo, Notify My Android, Pushover, Prowl, Supertoasty or PushBullet.
|
||||
|
||||
* `target = ""`
|
||||
|
||||
|
@ -211,6 +213,7 @@ to something similar to "http://domain/#channel/2011-03-09 14:25:09", or
|
|||
When using Pushover, this option allows you to specify a single device name to send
|
||||
notifications to; if blank or unset, notifications will be sent to all devices.
|
||||
|
||||
This option must be set when using PushBullet.
|
||||
|
||||
### Notifications
|
||||
|
||||
|
@ -391,6 +394,7 @@ This project is licensed under the MIT license. See the `LICENSE` file for deta
|
|||
[Pushover]: http://pushover.net
|
||||
[Prowl]: http://www.prowlapp.com
|
||||
[Supertoasty]: http://www.supertoasty.com
|
||||
[PushBullet]: https://www.pushbullet.com/
|
||||
|
||||
[issues]: http://github.com/jreese/znc-push/issues
|
||||
[ZNC]: http://en.znc.in "ZNC, an advanced IRC bouncer"
|
||||
|
|
8
push.cpp
8
push.cpp
|
@ -253,9 +253,9 @@ class CPushMod : public CModule
|
|||
}
|
||||
else if (service == "pushbullet")
|
||||
{
|
||||
if (options["username"] == "" || options["secret"] == "")
|
||||
if (options["target"] == "" || options["secret"] == "")
|
||||
{
|
||||
PutModule("Error: username (device id) or secret (api key) not set");
|
||||
PutModule("Error: target (device id) or secret (api key) not set");
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -266,7 +266,7 @@ class CPushMod : public CModule
|
|||
service_auth = options["secret"] + CString(":");
|
||||
service_auth.Base64Encode();
|
||||
|
||||
params["device_id"] = options["username"];
|
||||
params["device_id"] = options["target"];
|
||||
params["type"] = "note";
|
||||
params["title"] = message_title;
|
||||
params["body"] = message_content;
|
||||
|
@ -1061,7 +1061,7 @@ class CPushMod : public CModule
|
|||
}
|
||||
else if (value == "pushbullet")
|
||||
{
|
||||
PutModule("Note: Pushbullet requires setting both 'username' (to device id) and 'secret' (to api key) options");
|
||||
PutModule("Note: Pushbullet requires setting both 'target' (to device id) and 'secret' (to api key) options");
|
||||
}
|
||||
else if (value == "boxcar")
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue