3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +01:00
Commit Graph

3743 Commits

Author SHA1 Message Date
James Lu
ae01c5e418 Add Dockerfile
Closes #652.

Co-authored-by: James Newton <hello@jamesnewton.com>
2019-12-23 00:02:57 -08:00
James Lu
a79354cd52 apply_modes: fix removing multiple ban modes in one command 2019-12-22 23:57:36 -08:00
James Lu
847c26cd7b Declare Python 3.8 support
Also switch CI base version from xenial to bionic.
2019-12-22 23:13:49 -08:00
James Lu
44770fb6d1 classes: fix SyntaxWarning: "is" with a literal on Python 3.8 2019-12-22 23:11:58 -08:00
James Lu
594b7124ff inspircd: warn when using InspIRCd 2 compat mode on an InspIRCd 3 uplink
Some commands like KICK are not mangled correctly in this mode.
2019-12-22 22:37:49 -08:00
James Lu
dadf2c3211 structures: suppress CopyWrapper logging 2019-12-22 22:32:10 -08:00
James Lu
b24dc206e0 inspircd: negotiate casemapping setting on link for InspIRCd 3
Closes #654.
2019-12-22 22:27:12 -08:00
James Lu
b495cb4c5e classes: clean up _expandPUID
Also make the logging less noisy.
2019-12-22 22:14:26 -08:00
James Lu
b1b14dfb55 classes: disable logging about modes by default 2019-12-22 22:14:26 -08:00
James Lu
b15c885dbc RELNOTES: move all github references to my new username
[skip ci]
2019-12-08 12:21:33 -08:00
James Lu
6a71ca64ac PyLink 2.1-beta1 2019-12-08 12:18:13 -08:00
James Lu
0a264b430e docs/t: fix wrong version for the last two protocol caps 2019-12-08 12:17:33 -08:00
James Lu
daf496cc96 PyLink 2.0.3
-----BEGIN PGP SIGNATURE-----
 
 iQIzBAABCgAdFiEEwmmRkfzwXj5hKJctxWWyWArxYlwFAl2gudoACgkQxWWyWArx
 YlwcUg/9ERp6HnviDa46cXt2OcQg0eNAuTFl0H+YCpjzj2Qvg8uBdCjh0jzAahh4
 rGw4XbKp5l3kXWMyjoy1roKqYbYy6nUdE4HCiER7wxpHqbUnfprCv6REIOxazz7Z
 jRwKbD89FKPtn957C7qfBBY93QX6h5v92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
 MQi6Mo7j2ew0J3zc5kP6DNX2AkdAc2Nw8dXPtrWJr/ubjUBZDgM2CrWnTE+QJlk5
 5g/Lx0V4BG6GeYxmsuOEOV3EEH1QvCehgsmpyeJgYVYqq1wtIk1g4CGKtn+fY+7K
 y8TMueCPCXJtLOoH8iWTd//oy58c/IxQQGYmfk+sxUOIrIgvhU/oFIE+77LpkgEx
 E1Zd6Lct0+S6XiadvopE5IeE2CDr5DV9DqEMvA==
 =Oxxo
 -----END PGP SIGNATURE-----

Merge tag '2.0.3' into devel

PyLink 2.0.3

Conflicts:
	RELNOTES.md
	VERSION
	coremods/control.py
	example-conf.yml
	plugins/changehost.py
2019-12-08 11:34:18 -08:00
James Lu
b92f39d79c Update IRCd notes & supported IRCd versions
[skip ci]
2019-11-30 00:10:55 -08:00
James Lu
b9561500fd relay: simplify clientbot forcepart/kick formatting 2019-11-29 23:52:19 -08:00
James Lu
72c57d433a clientbot: add option to always autorejoin channels
Closes #647.
2019-11-29 23:51:57 -08:00
James Lu
7eff7861ed structures: implement _from_iterable() so that set operations work 2019-11-29 23:35:52 -08:00
James Lu
1a89813cd4 unreal: stop sending NETINFO on link
NETINFO isn't strictly necessary for services servers, and not sending it suppresses protocol version/network name mismatch warnings.
2019-11-29 23:03:35 -08:00
James Lu
d73e2fc209 unreal: read user modes from PROTOCTL USERMODES when available
This is sent by UnrealIRCd 4.2.3 and later.
2019-11-17 12:24:54 -08:00
James Lu
8a48d4d8cc inspircd: fix sending ping replies from subservers 2019-11-17 10:48:58 -08:00
James Lu
7bf1a9e08d Add can-manage-bot-channels protocol capability
This allows skipping part/join for service bots on platforms where this is not possible.
2019-11-02 13:55:49 -07:00
James Lu
85922cd376 README: drop webchat link
[skip ci]

(cherry picked from commit 4ceeb1630f)
2019-11-01 08:13:07 -07:00
James Lu
4ceeb1630f README: drop webchat link
[skip ci]
2019-10-28 19:28:07 -07:00
James Lu
41497a8a13 automode: mangle channels to "#chanid" on networks where they're stored as int
This allows the bulk of automode's commands to actually function.
2019-10-14 09:57:47 -07:00
James Lu
2c53ce0682 PyLink 2.0.3 2019-10-11 10:18:43 -07:00
James Lu
d28a9681ac automode: disable on networks where IRC modes aren't supported
Closes #638.
2019-10-10 22:24:44 -07:00
James Lu
297d31dab2 Add has-irc-modes capability (#620) 2019-10-10 22:17:11 -07:00
James Lu
f99be51515 changehost: add enable and enforce as network specific options.
Closes #611.
2019-10-10 21:45:18 -07:00
James Lu
da67d6c42f changehost: port most options to get_service_option(s) (#611, #642) 2019-10-10 21:04:15 -07:00
James Lu
1623462b73 relay: use get_service_options() to combine clientbot styles options (#642) 2019-10-10 19:16:58 -07:00
James Lu
e0d82cdf3d Add get_service_options API to merge together global & local network options
First part of #642.
2019-10-10 18:49:07 -07:00
James Lu
9ec83f3995 Base test for get_service_option() 2019-10-09 20:55:52 -07:00
James Lu
601b811912 test/ptf: reorganize tests into sections 2019-10-09 20:53:58 -07:00
James Lu
72e96156b5 changehost: listen for services account changes
This allows for consistent account based hostmasks for SASL gateways, etc.
2019-10-09 20:32:47 -07:00
James Lu
4095eea3a7 changehost: simplify _changehost() syntax 2019-10-09 20:30:53 -07:00
James Lu
8cf1beb183 test_irc_parsers: fix Python 3.5 support
open() only supports pathlib paths on 3.6 and later.
2019-09-15 16:27:17 -07:00
James Lu
52001ac82d .travis.yml: add 3.7, remove 3.4 tests 2019-09-15 16:24:55 -07:00
James Lu
c8ba6291a6 parse_irc_command: ignore empty IRC lines
I seem to be getting this on my InspIRCd 2 test server?
2019-09-10 19:46:46 -07:00
James Lu
083dc6a58f Rewrite is_server_name() to fail on hostnames with - and _ 2019-09-10 19:31:57 -07:00
James Lu
462fa91622 Add validate-hostname tests from ircdocs/parser-tests 2019-09-10 19:22:53 -07:00
James Lu
b803c23b57 Add in mask-match tests from ircdocs/parser-tests 2019-09-10 19:19:16 -07:00
James Lu
899443d2fe split_hostmask: raise an error on empty nick/ident/host 2019-09-10 19:12:26 -07:00
James Lu
fe4bea2948 Add in userhost-split tests from ircdocs/parser-tests 2019-09-10 19:12:18 -07:00
James Lu
01705f8393 Skip message tag parse tests for now 2019-09-10 19:10:58 -07:00
James Lu
943168df53 parse_message_args: remove extraneous \'s that aren't escaping characters 2019-09-10 18:31:07 -07:00
James Lu
aba198dbd6 parse_args: ignore extra spaces not part of the final multi-word arg 2019-09-10 18:11:07 -07:00
James Lu
188d0f647e ircs2s_common: make parse_message_tags() a classmethod 2019-09-10 18:11:07 -07:00
James Lu
19f7ba38b3 Begin integrating ircdocs/parser-tests 2019-09-10 18:11:07 -07:00
James Lu
c1859b64fa inspircd: fix handling of SVSTOPIC on insp3 2019-08-29 11:16:10 -07:00
James Lu
f9368dd5cc Protocol tests for get_hostmask(), get_friendly_name() 2019-08-26 16:54:27 -07:00