3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 01:09:22 +01:00

unreal: fix wrong hook name for legacy user introduction

This commit is contained in:
James Lu 2017-10-15 01:55:53 -07:00
parent e8958962dd
commit 4935ef521e

View File

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