3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

unreal: normalize nicks to UIDs in SJOIN handling

These can still be used by old Unreal 3.2 links.
This commit is contained in:
James Lu 2017-01-01 13:47:57 -08:00
parent 71bd5583fa
commit 4a519832e0

View File

@ -595,6 +595,7 @@ class UnrealProtocol(TS6BaseProtocol):
else:
r = re.search(r'([^\w]*)(.*)', userpair)
user = r.group(2)
user = self._getUid(user) # Normalize nicks to UIDs for Unreal 3.2 links
# Unreal uses slightly different prefixes in SJOIN. +q is * instead of ~,
# and +a is ~ instead of &.
modeprefix = (r.group(1) or '').replace("~", "&").replace("*", "~")