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:
parent
bd9885182e
commit
4dcbc85a81
@ -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}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user