mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +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:
parent
d05917222d
commit
aa0d1596b0
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user