From 9f20f8f76719a47e6ce8d0e1868dbeb056fd049e Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 3 Apr 2016 12:55:22 -0700 Subject: [PATCH] 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. --- protocols/unreal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/protocols/unreal.py b/protocols/unreal.py index 0e13a9f..5071015 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -542,7 +542,7 @@ class UnrealProtocol(TS6BaseProtocol): # &, ", and ' entries are used for bursting bans: # https://www.unrealircd.org/files/docs/technical/serverprotocol.html#S5_1 break - r = re.search(r'([^\d]*)(.*)', userpair) + r = re.search(r'([^\w]*)(.*)', userpair) user = r.group(2) # Unreal uses slightly different prefixes in SJOIN. +q is * instead of ~, # and +a is ~ instead of &.