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

ts6: don't crash when CHGHOST target is a nick instead of UID

This commit is contained in:
James Lu 2016-10-01 00:34:38 -07:00
parent bd9885182e
commit 4dcbc85a81

View File

@ -647,7 +647,7 @@ class TS6Protocol(TS6BaseProtocol):
def handle_chghost(self, numeric, command, args):
"""Handles incoming CHGHOST commands."""
target = args[0]
target = self._getUid(args[0])
self.irc.users[target].host = newhost = args[1]
return {'target': target, 'newhost': newhost}