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
James Lu
2baec4c65a
Protocol tests for wrap_modes()
2019-08-26 16:47:49 -07:00
James Lu
ee4997dd72
Tests for join_modes, base case tests for apply_modes / reverse_modes
2019-08-26 16:24:58 -07:00
James Lu
ebce431ba4
reverse_modes: test cycling prefix modes
2019-08-26 16:10:08 -07:00
James Lu
a1f3af9099
reverse_modes: deduplicate reversing modes with arguments
2019-08-26 16:10:08 -07:00
James Lu
d93c071446
reverse_modes: test mode cycling with simple modes and bans
2019-08-26 16:10:08 -07:00
James Lu
9168880204
parse_modes: fix handling of +b-b ban cycles
2019-08-26 16:10:08 -07:00
James Lu
c2b5966739
reverse_modes: ignore unsetting simple modes that didn't exist
2019-08-26 16:10:08 -07:00
James Lu
b685f416f6
reverse_modes: treat mode arguments case insensitively
2019-08-26 16:10:08 -07:00
James Lu
0533827ddf
reverse_modes: add basic tests
2019-08-26 16:10:02 -07:00
James Lu
32219ccb78
reverse_modes: return a list and not a set of modes
...
This ensures that order is kept when the input is a list.
2019-08-26 13:16:52 -07:00
James Lu
808e1d1f5a
protocol tests: cleanup
2019-08-26 12:59:57 -07:00
James Lu
304631ebd0
Fixes to clientbot._get_UID() behaviour
2019-08-26 12:17:07 -07:00
James Lu
27eed3334b
parse_modes: test combinations of nicks and UIDs in prefix modes
2019-08-23 21:24:00 -07:00
James Lu
c1dbfdab48
classes, clientbot: don't allow _get_UID in parse_modes to create new users
2019-08-23 21:22:28 -07:00
James Lu
da58669de5
parse_modes: case fold parameters to modes
2019-08-23 21:01:55 -07:00
James Lu
6ad34672d3
apply_modes: fix statekeeping with current modes mapping
2019-08-23 00:22:25 -07:00
James Lu
46f081e19b
apply_modes: treat modes with arguments case-insensitively
2019-08-23 00:11:21 -07:00
James Lu
cb4d2cc384
Add more mode cycling (+b/-b, etc.) tests
2019-08-23 00:11:21 -07:00
James Lu
3eb90fa65c
More rigorous testing of +k/-k parsing
2019-08-23 00:11:21 -07:00
James Lu
fe51f71a6e
apply_modes: refactor checks for existing modes
2019-08-23 00:10:30 -07:00
James Lu
087ca0947b
inspircd: write InspIRCd 3.x in file header
2019-08-22 22:58:34 -07:00
James Lu
a885b79306
More tests for parse_modes(), apply_modes()
2019-08-22 22:58:24 -07:00
James Lu
575cff297d
Channel: remove call to deprecated function name
2019-08-22 22:58:15 -07:00
James Lu
e5493eac87
docs/modelists: regenerate & update channel modes list
...
- channel-modes: split inspircd column into insp20, insp3 sections - this will let us account for current and future differences between the two
- channel-modes: modularize unreal mode list
2019-08-22 21:04:58 -07:00
James Lu
26bfc06869
unreal: get rid of weird cmode +f workaround
2019-08-22 21:02:30 -07:00
James Lu
d3f2a370da
Revert "inspircd: don't allow _ in hosts"
...
This reverts commit ac8b7babf1
.
2019-08-22 19:02:59 -07:00
James Lu
a8832a5f93
modelists: update extban listing
2019-08-22 19:00:39 -07:00
James Lu
0b8ed2dae9
unreal: declare support for msgbypass and timedban extbans
...
Closes #557 .
2019-08-22 18:48:46 -07:00
James Lu
452a47d4f1
relay: handle acting extbans for +e too
...
InspIRCd acting extbans and UnrealIRCd ~m are both used in theis context.
2019-08-22 18:40:23 -07:00
James Lu
d57b121600
unreal: work around a potential race when sending kills on join
...
(cherry picked from commit 1780271dd0
)
2019-08-22 17:46:15 -07:00