From 4935ef521e047b02339315b8d55849cd74192444 Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 15 Oct 2017 01:55:53 -0700 Subject: [PATCH] unreal: fix wrong hook name for legacy user introduction --- protocols/unreal.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/protocols/unreal.py b/protocols/unreal.py index bc25b9e..2514eb2 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -445,7 +445,10 @@ class UnrealProtocol(TS6BaseProtocol): if not accountname.isdigit(): self.call_hooks([uid, 'CLIENT_SERVICES_LOGIN', {'text': accountname}]) - return {'uid': uid, 'ts': ts, 'nick': nick, 'realhost': realhost, 'host': host, 'ident': ident, 'ip': ip} + # parse_as is used here to prevent legacy user introduction from being confused + # with a nick change. + return {'uid': uid, 'ts': ts, 'nick': nick, 'realhost': realhost, 'host': host, + 'ident': ident, 'ip': ip, 'parse_as': 'UID'} def handle_pass(self, numeric, command, args): # <- PASS :abcdefg