mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-17 14:01:03 +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:
parent
55afa1bff6
commit
cb3187c5e9
@ -259,7 +259,7 @@ class TS6BaseProtocol(Protocol):
|
|||||||
"""Handles incoming KICKs."""
|
"""Handles incoming KICKs."""
|
||||||
# :70MAAAAAA KICK #test 70MAAAAAA :some reason
|
# :70MAAAAAA KICK #test 70MAAAAAA :some reason
|
||||||
channel = utils.toLower(self.irc, args[0])
|
channel = utils.toLower(self.irc, args[0])
|
||||||
kicked = args[1]
|
kicked = self._getNick(args[1])
|
||||||
self.handle_part(kicked, 'KICK', [channel, args[2]])
|
self.handle_part(kicked, 'KICK', [channel, args[2]])
|
||||||
return {'channel': channel, 'target': kicked, 'text': args[2]}
|
return {'channel': channel, 'target': kicked, 'text': args[2]}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user