From a63e2557be9512ff2f87a39b91f8ed5dd5b0a8a7 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 (cherry picked from commit 4935ef521e047b02339315b8d55849cd74192444) --- protocols/unreal.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/protocols/unreal.py b/protocols/unreal.py index b4148b9..d0493ac 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -446,7 +446,10 @@ class UnrealProtocol(TS6BaseProtocol): if not accountname.isdigit(): self.irc.callHooks([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