3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

unreal: fix wrong hook name for legacy user introduction

(cherry picked from commit 4935ef521e)
This commit is contained in:
James Lu 2017-10-15 01:55:53 -07:00
parent e8b7116888
commit a63e2557be

View File

@ -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