3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-02 15:59:26 +01:00

unreal: fix userlist parsing breaking with Unreal 3.2 nicks starting with a symbol

This commit is contained in:
James Lu 2017-04-01 12:10:19 -07:00
parent 1d6da68963
commit fccec3a195

View File

@ -615,7 +615,9 @@ class UnrealProtocol(TS6BaseProtocol):
elif userpair.startswith("'"): elif userpair.startswith("'"):
changedmodes.add(('+I', userpair[1:])) changedmodes.add(('+I', userpair[1:]))
else: else:
r = re.search(r'([^\w]*)(.*)', userpair) # Note: don't be too zealous in matching here or we'll break with nicks
# like "[abcd]".
r = re.search(r'([~*@%+]*)(.*)', userpair)
user = r.group(2) user = r.group(2)
if not user: if not user: