3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00
Commit Graph

3713 Commits

Author SHA1 Message Date
James Lu
075c1d141d relay: sanitize idents on hybrid further 2021-06-09 20:19:26 -07:00
James Lu
d94593e4f6 unreal: declare EXTSWHOIS support 2021-06-09 20:18:34 -07:00
James Lu
8db238e869 ircs2s_common: only read sender prefixes on lines starting with ":"
This fixes incorrect behaviour if the nick of a sender matches that of a S2S command (e.g. "ping")
2021-06-09 20:17:27 -07:00
James Lu
da7f9611bc Remove my old nickname from examples 2021-06-09 20:15:49 -07:00
James Lu
ed1644a636 relay: workaround strict ident checks on hybrid 2021-06-05 00:39:23 -07:00
James Lu
1b433b741b classes: add ProtocolError to __all__ 2021-06-05 00:39:18 -07:00
James Lu
53e30520b8 Guard exec plugin behind a config option 2021-06-04 17:48:29 -07:00
James Lu
ba5f89d03c Move to libera.chat
[skip ci]
2021-05-19 18:03:13 -07:00
James Lu
88294ff0b0 relay-quickstart: a long needed refresh
- Document in more detail how Relay actually works (mirroring / puppeting via a services server)
- Document more clearly the steps to create a channel: especially mention how CREATE and LINK have to be run from different networks.
- Various typo fixes
2021-05-03 21:18:24 -07:00
James Lu
0b6845fa92 relay: allow deleting channels created before a casemapping change 2021-02-27 12:02:42 -08:00
James Lu
4500e27931 relay: fix channel not found errors on LINK when remote casemapping differs
This can happen, e.g. if the remote network uses casemapping=ascii and has a channel containing "|", and the local network uses casemapping=rfc1459.

Thanks to iTzNavic for reporting.
2021-02-27 12:01:01 -08:00
James Lu
537c643ed0 ircs2s_common: gracefully handle QUIT messages without a reason
Closes #663.
2021-02-14 22:39:57 -08:00
James Lu
d9aa5e9869 Merge remote-tracking branch 'origin/master' into devel 2021-02-14 22:33:59 -08:00
James Lu
17fccfeca9 Add a basic linting config 2021-02-09 12:31:25 -08:00
James Lu
c5541b58e5 docs: mention that Clientbot-only relays are not supported 2021-02-09 12:31:21 -08:00
James Lu
5eca51d979 example-conf: inspircd 3 support is not beta anymore 2021-01-20 11:58:50 -08:00
James Lu
15d51b3455 Don't loop infinitely if _send fails... 2021-01-10 10:28:34 -08:00
James Lu
b254a7f971 readme refresh
yeah, I'm officially looking for new maintainers
2020-12-07 12:50:15 -08:00
James Lu
d53ed4f25d readme refresh
yeah, I'm officially looking for new maintainers
2020-12-07 12:08:19 -08:00
James Lu
b02aadf378 _send: break if the socket is None 2020-09-29 18:49:43 +00:00
James Lu
d50de12834 Retry when socket.send() fails with BlockingIOError / EAGAIN 2020-09-29 17:45:13 +00:00
James Lu
2aa00d6efc relay: skip messages from clientbot networks when relay_clientbot isn't loaded 2020-08-15 23:23:29 -07:00
Celelibi
16a7cef1aa plugin relay: Rename homeirc to origirc
Signed-off-by: Celelibi <celelibi@gmail.com>
2020-06-18 21:15:53 -07:00
Celelibi
43532fd1cc ClientbotWrapperProtocol: Missing log message argument: channel
Signed-off-by: Celelibi <celelibi@gmail.com>
2020-06-18 21:15:53 -07:00
Celelibi
cb0af148d8 IRCNetwork: Unused attribute _selector_key
Was always None because the called function doesn't return a value.

Signed-off-by: Celelibi <celelibi@gmail.com>
2020-06-18 21:15:53 -07:00
Celelibi
dcd0a28c89 PyLinkNetworkCore: rename filename, config -> channel, chandata
Signed-off-by: Celelibi <celelibi@gmail.com>
2020-06-18 21:15:53 -07:00
Celelibi
7204ef1cf1 plugin stats: Refactor multiline function call
Signed-off-by: Celelibi <celelibi@gmail.com>
2020-06-18 21:15:53 -07:00
Celelibi
88116dbe8d plugin stats: Missing parentheses change number of arguments
Signed-off-by: Celelibi <celelibi@gmail.com>
2020-06-18 21:15:53 -07:00
Celelibi
b49d5775e2 TS6Protocol: Missing logging argument in handle_realhost
Signed-off-by: Celelibi <celelibi@gmail.com>
2020-06-18 21:15:53 -07:00
Celelibi
03c9c71dc3 TS6Protocol: change servername to numeric in handle_pass
Signed-off-by: Celelibi <celelibi@gmail.com>
2020-06-18 21:15:53 -07:00
Celelibi
26bdc90781 TS6Protocol: target_ircd renamed when refactored
Signed-off-by: Celelibi <celelibi@gmail.com>
2020-06-18 21:15:53 -07:00
Celelibi
6bf66f9e4d KeyedDefaultdict: super() already bind to self
Signed-off-by: Celelibi <celelibi@gmail.com>
2020-06-18 21:15:53 -07:00
Celelibi
84b73bb89f
Tidy up imports and define __all__ in modules (#660) 2020-06-18 15:47:20 -07:00
Celelibi
9470e9329a
Implement path configuration for files created by pylink (#659)
* Configure log directory

Signed-off-by: Celelibi <celelibi@gmail.com>

* Configure data store directory

Signed-off-by: Celelibi <celelibi@gmail.com>

* Configure PID file directory

Signed-off-by: Celelibi <celelibi@gmail.com>
2020-05-30 11:49:01 -07:00
James Lu
947732580a PyLink 3.0.0 2020-04-11 00:28:24 -07:00
James Lu
3d5f9685c5 README: update badge colours & order
[skip ci]
2020-04-10 16:27:42 -07:00
James Lu
c53ee0a80c README: refresh, add Docker install instructions
[skip ci]
2020-04-10 14:56:52 -07:00
James Lu
0cba40e4c5 drone CI: remove date based tags, it isn't strictly necessary 2020-04-10 13:38:18 -07:00
James Lu
c14fc5cf07 Add Drone CI pipeline for building Docker image 2020-04-10 13:27:27 -07:00
James Lu
ba22b18cc4 Replace references to PyLink 2.1 with 3.0 2020-04-10 11:15:54 -07:00
James Lu
a143d98ac1 global: always coerse channel argument to str
These can be type int as of v3.0, e.g. in pylink-discord
2020-03-30 13:09:38 -07:00
James Lu
a19f257bd8 clientbot: remove references to self.irc
Reported by @genius3000.
2020-03-29 01:15:11 -07:00
James Lu
380854f88a Remove references to ./pylink
Running the launcher from the source folder isn't necessary anymore.
2020-03-24 18:07:18 -07:00
James Lu
8ffd787075 global: call match_text() on the target network object
Technically this will only make a difference if a server object overrides match_text(), but this is the more correct solution.
2020-03-16 19:07:18 -07:00
James Lu
b4d7883a71 global: ignore networks that don't have .pseudoclient set
This is the case for e.g. the control network object in pylink-discord.
2020-03-16 19:06:28 -07:00
James Lu
f17540a7e2 README refresh; update supported IRCds list
- Move charybdis to extended support - I have not seen any networks use this in production
- Move legacy p10 / ts6 variants into a new Legacy support section

[skip ci]
2020-03-14 10:28:21 -07:00
James Lu
b433fed718 unreal: update module header 2020-03-08 16:47:31 -07:00
James Lu
475349dc39 p10: warn when receiving an invalid subcommand with use_extended_accounts=true 2020-03-08 16:29:16 -07:00
James Lu
a8f0bd4fb7 classes: remove self.proto, self.irc compat links 2020-03-08 15:37:06 -07:00
James Lu
f7e84e7816 PyLink 3.0-rc1 2020-02-22 23:57:43 -08:00