aboutsummaryrefslogtreecommitdiff
path: root/http2irc.py
Commit message (Collapse)AuthorAgeFilesLines
* Clean up loggingGravatar JustAnotherArchivist2019-12-271-36/+48
|
* Add a way to pass additional arguments into the moduleGravatar JustAnotherArchivist2019-12-221-9/+23
|
* Add support for transformation/translation modules that do arbitrary request ↵Gravatar JustAnotherArchivist2019-12-221-7/+54
| | | | | | processing to generate the message Fixes #3
* Support web server config changesGravatar JustAnotherArchivist2019-12-191-8/+12
|
* Make logging configurable through config fileGravatar JustAnotherArchivist2019-12-181-7/+32
|
* Fix InvalidStateError in MessageQueue when the IRC server closes the connectionGravatar JustAnotherArchivist2019-12-161-2/+2
|
* Get rid of the SimpleNamespace for configuration since it complicates config ↵Gravatar JustAnotherArchivist2019-12-161-31/+20
| | | | | | change detection SimpleNamespace's documentation does not say anything about equality tests, which is why the update_config methods checked the relevant values using a tuple instead. But as more config values are added, this makes the comparisons unnecessarily long. A dict simplifies this. As a side-effect, the constraints of the maps keys being a valid identifier are no longer relevant either.
* Catch config errors on reloadGravatar JustAnotherArchivist2019-12-151-1/+5
|
* Wait for connection registration before trying to join channels and send ↵Gravatar JustAnotherArchivist2019-12-151-3/+5
| | | | messages
* Handle prefixed messages from the serverGravatar JustAnotherArchivist2019-12-151-0/+3
|
* Add CertFP supportGravatar JustAnotherArchivist2019-12-151-3/+52
|
* Use plain text message payloads instead of JSONGravatar JustAnotherArchivist2019-12-021-13/+18
|
* Fix usage stringGravatar JustAnotherArchivist2019-12-021-1/+1
|
* Confirm message delivery by periodic PINGsGravatar JustAnotherArchivist2019-12-021-3/+29
| | | | | | This assumes that a PONG response from the server means the connection is still intact. The messages could still have been dropped for weird reasons, but short of using a second client to confirm the delivery directly, there is no better option to test this. RFC 1459 actually specifies that "servers should not respond to PING commands". However, this recommendation has been removed in RFC 2812, and in practice, all common IRC servers seem to respond to PINGs.
* Refactor into more flexible tool supporting multiple endpoints and channels ↵Gravatar JustAnotherArchivist2019-12-021-0/+375
(nodeping2irc -> http2irc) with no-downtime config changes using a TOML config file and SIGUSR1 to reload and adapt accordingly