From fccec3a19586f63b6f4eb534ae64690563cda601 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sat, 1 Apr 2017 12:10:19 -0700 Subject: [PATCH] unreal: fix userlist parsing breaking with Unreal 3.2 nicks starting with a symbol --- protocols/unreal.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/protocols/unreal.py b/protocols/unreal.py index 06e5174..4349f5e 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -615,7 +615,9 @@ class UnrealProtocol(TS6BaseProtocol): elif userpair.startswith("'"): changedmodes.add(('+I', userpair[1:])) 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) if not user: