mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-27 21:19:31 +01:00
unreal: update SJOIN matching regex
We should only treat symbols as a possible prefix, not letters. Things like +nick might be sent in a SJOIN instead of +001AAAAAA, for legacy servers.
This commit is contained in:
parent
4157cb5671
commit
9f20f8f767
@ -542,7 +542,7 @@ class UnrealProtocol(TS6BaseProtocol):
|
||||
# &, ", and ' entries are used for bursting bans:
|
||||
# https://www.unrealircd.org/files/docs/technical/serverprotocol.html#S5_1
|
||||
break
|
||||
r = re.search(r'([^\d]*)(.*)', userpair)
|
||||
r = re.search(r'([^\w]*)(.*)', userpair)
|
||||
user = r.group(2)
|
||||
# Unreal uses slightly different prefixes in SJOIN. +q is * instead of ~,
|
||||
# and +a is ~ instead of &.
|
||||
|
Loading…
Reference in New Issue
Block a user