Commit Graph

117 Commits

Author SHA1 Message Date
Jonathan Herlin 321a166dca Remove code for NMA 2019-03-23 13:11:01 +01:00
dgw 601efce52c Add notice handling
* Update idle time when the user sends a notice
* Send incoming channel & private notices through the existing
  notification pipeline

Does not add any special handling of notices vs. regular PRIVMSGs or
ACTIONs; all three message types will appear the same.
2018-10-30 02:29:31 -05:00
John Reese d2cf0d3a95
Merge pull request #237 from raimue/message-escape
Add new option message_escape
2018-03-29 13:41:41 -07:00
Rainer Müller 11f0eb672e Add new option message_escape
Allow to escape the keyword replacements before they are put into
message_content with any of the ZNC supported formats. An unknown
value will leave the string unmodified.
2018-03-28 11:57:14 +02:00
Rainer Müller 904a784bd8 Check HTTP status code with libcurl
HTTP signals success with a 2xx status code. This assumes all services
return a code in this range for successful API requests.
2018-03-28 11:16:56 +02:00
phit f79e8ea8fb
small typo 2017-07-21 02:13:49 +02:00
phit 98a558cf56
added Discord support 2017-07-21 02:08:59 +02:00
dgw 3477d71f6f Don't crash when sending a push when user has no networks
Fixes #231
2017-06-29 04:34:57 -05:00
dgw d3637c4857 Tweak {message} to remove unexpected extra text
Resolves #226
2017-04-01 02:22:38 -04:00
Kevin Siml 333a401e79 Update push.cpp 2017-02-27 09:16:41 +01:00
Kevin Siml a432dbf449 Update push.cpp 2017-02-26 23:10:46 +01:00
Kevin Siml 31721d1eca Update push.cpp 2017-02-26 22:32:26 +01:00
John Reese ed0263249a Fix context filtering to case insensitivity 2017-01-09 12:53:05 -08:00
John Reese b552972820 Revert "Fix pushbullet device_iden parameter." 2016-10-12 14:09:53 -07:00
dgw 645f0fe555 Airgram has vanished from the face of the Internet
See #205.
2016-09-23 03:32:42 -05:00
Wen-chien Jesse Sung c01d078806 Support telegram
Signed-off-by: Wen-chien Jesse Sung <jesse@cola.voip.idv.tw>
2016-07-27 15:34:44 +08:00
Fabien Wernli d49837056e Fix libcurl implementation when using query params
Query parameters were silently dropped
Fixes #195
2016-04-01 14:53:44 +02:00
Naine d749141f17 Fix my previous fix. 2016-02-19 17:04:59 +11:00
John Reese aaa148feb5 Merge pull request #191 from jesopo/master
Fix pushbullet device_iden parameter.
2016-02-18 19:11:13 -08:00
jesopo 8a5b59058a changed pushbullet's device identity parameter from device_iden to target_device_iden.
Signed-off-by: jesopo <github@lolnerd.net>
2016-02-18 15:38:43 +00:00
Naine 9361dd7a23 Rename variable in highlight()
Rename "push" to "negate_match" and reverse its values to better reflect its new purpose.
2016-02-18 15:36:40 +11:00
Naine aebf9460d9 Fix negative matching/filtering
Previously, the highlight function returned true immediately upon finding any match, without checking whether any negative matches should be preventing the match.
2016-02-17 13:01:01 +11:00
shodan 769fb80c48 Add Pushjet support 2015-11-20 18:58:51 -08:00
Lars Kellogg-Stedman 4087133a5e change handling of embedded version information
rather than modifying push.cpp as part of the built process, this
passes in a version string on the command.  This is a little cleaner
(it does not lead to false changes in push.cpp) and makes it easier for a
packager to provide explicit version information, e.g., by passing in
version information to make:

    make version=`lars-test'
2015-09-28 21:54:35 -04:00
Akinori MUSHA 6788a63ff5 Do not send proxy info to external services
Currently proxy options are passed to make_curl_request() via the
`params` parameter, so they are sent to external services for no good
reason.  This commit fixes it by adding proxy parameters to the
function.
2015-08-28 18:36:06 +09:00
John Reese a949deddc3 Merge pull request #168 from omnidan/network-blacklist
network-blacklist option
2015-07-30 13:02:56 -07:00
Mathieu Poussin e9fc5a9589 Add pushalot support 2015-07-14 03:25:52 -04:00
Daniel Bugl 18cbe2d61b implement network_blacklist 2015-07-05 23:15:40 +02:00
ggrog 1a6ee99f54 Add context filter 2015-03-25 22:57:12 -05:00
Sergey Lukjanov b0db56e0f0 Add title to the text itself and make it bold 2015-02-26 13:21:01 +03:00
Sergey Lukjanov 3512238b09 Add slack.com support using incoming webhooks 2015-02-22 01:51:12 +03:00
Erhan Justice ff4518cad8 Added better error checking for target 2014-10-15 18:33:15 -07:00
Erhan Justice 79572136ef Added nexmo service instructions 2014-10-15 18:29:13 -07:00
Erhan Justice ea6e9190ed Added support for nexmo SMS service 2014-10-15 18:14:29 -07:00
John Reese d29ce3be2a Fix #114: revert proxy change that breaks w/o libcurl 2014-09-02 12:08:06 -07:00
John Reese aac08a1430 Merge pull request #112 from creesch/patch-1
Pushbullet: use type "link" when message_uri is set
2014-08-28 12:00:07 -07:00
Joel Goguen b9995692e8 Add explicit proxy support when using libcurl.
The appropriate *_proxy environment variables aren't always detected properly
by libcurl. This allows manually setting the proxy when this happens, and
disabling SSL certificate verification if the proxy requires it.
2014-08-28 11:52:40 -07:00
creesch 2246fb0399 Pushbullet use type "link" when message_uri is set 2014-08-27 10:28:14 +02:00
Joel Goguen bf63856fb7 Add support for airgram authenticated service 2014-08-20 10:07:36 -07:00
Kyle Clemens 7ba914d660 Fixed: Show who messages come from 2014-06-17 01:03:19 -04:00
Richard Schwab 0317a26ec7 Add {network} for keyword expansion 2014-05-30 22:50:18 +02:00
John Reese 8c814bfacc Fix #91: Update pushbullet to api v2 2014-05-16 11:44:37 -07:00
John Reese 055fc3981d Reindent 2014-05-16 11:44:30 -07:00
John Reese 4fc6d45458 Merge pull request #85 from FruitieX/fruitiex/url_improvements
URL service improvements:
2014-04-23 16:35:33 -07:00
Rasmus Eskola c73f4d55be URL service: enable HTTP basic auth if either username or secret is set
Update documentation accordingly.
2014-04-23 21:33:12 +03:00
Ryan Collins 5f919beaa3 Added Boxcar 2 support 2014-04-23 09:49:48 -04:00
Rasmus Eskola 14f0012b12 url service improvements:
- support POST method at user's preference
- support basic HTTP auth (uses "user" and "secret" for
  username/password)
2014-04-21 20:32:28 +03:00
John Reese 9d7e6ea8f2 Remove support for deprecated PushBullet API
This also moves the call to Base64Encode, which fixes #70 by
preventing a double-encoding of the auth string when building with
support for libcurl instead of csocket.  The base64 encoding is now done
in the csocket request, where it is still required to operate correctly.
2014-04-13 11:48:06 -07:00
John Reese 84cf52fdf1 Extra debug output 2014-04-13 11:48:06 -07:00
John Reese 038bcd2b13 Add support for loading push as a user module
Loading as a user module will require either the webadmin or
controlpanel module, as ZNC Push will retain the current behavior
of loading as a network module by default.

Fixes #79
2014-04-11 13:46:51 -07:00