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

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

(cherry picked from commit 4dcbc85a81)
This commit is contained in:
James Lu 2016-10-01 00:34:38 -07:00
parent d05917222d
commit aa0d1596b0

View File

@ -630,7 +630,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}