mirror of
https://github.com/jlu5/PyLink.git
synced 2025-06-18 20:57:22 +02: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):
|
def handle_chghost(self, numeric, command, args):
|
||||||
"""Handles incoming CHGHOST commands."""
|
"""Handles incoming CHGHOST commands."""
|
||||||
target = args[0]
|
target = self._getUid(args[0])
|
||||||
self.irc.users[target].host = newhost = args[1]
|
self.irc.users[target].host = newhost = args[1]
|
||||||
return {'target': target, 'newhost': newhost}
|
return {'target': target, 'newhost': newhost}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user