3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-30 14:49:28 +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:
James Lu 2016-04-03 12:55:22 -07:00
parent 4157cb5671
commit 9f20f8f767

View File

@ -542,7 +542,7 @@ class UnrealProtocol(TS6BaseProtocol):
# &, ", and ' entries are used for bursting bans: # &, ", and ' entries are used for bursting bans:
# https://www.unrealircd.org/files/docs/technical/serverprotocol.html#S5_1 # https://www.unrealircd.org/files/docs/technical/serverprotocol.html#S5_1
break break
r = re.search(r'([^\d]*)(.*)', userpair) r = re.search(r'([^\w]*)(.*)', userpair)
user = r.group(2) user = r.group(2)
# Unreal uses slightly different prefixes in SJOIN. +q is * instead of ~, # Unreal uses slightly different prefixes in SJOIN. +q is * instead of ~,
# and +a is ~ instead of &. # and +a is ~ instead of &.