From 4a519832e0588c1d4c0b1edbbd21bbb910e9fc6f Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 1 Jan 2017 13:47:57 -0800 Subject: [PATCH] unreal: normalize nicks to UIDs in SJOIN handling These can still be used by old Unreal 3.2 links. --- protocols/unreal.py | 1 + 1 file changed, 1 insertion(+) diff --git a/protocols/unreal.py b/protocols/unreal.py index d6d67ae..af1b926 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -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("*", "~")