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

ts6_common: do reverse nick lookup for KICK targets

Also needed for Unreal 3.2 compat, as the kick target may be a nick (on legacy servers) instead of a UID.
This commit is contained in:
James Lu 2016-04-03 13:03:00 -07:00
parent 55afa1bff6
commit cb3187c5e9

View File

@ -259,7 +259,7 @@ class TS6BaseProtocol(Protocol):
"""Handles incoming KICKs."""
# :70MAAAAAA KICK #test 70MAAAAAA :some reason
channel = utils.toLower(self.irc, args[0])
kicked = args[1]
kicked = self._getNick(args[1])
self.handle_part(kicked, 'KICK', [channel, args[2]])
return {'channel': channel, 'target': kicked, 'text': args[2]}