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

unreal: fix for Python 3.4 support

The general syntax for unpacking lists with *list was only introduced in Python 3.5: https://www.python.org/dev/peps/pep-0448/
This commit is contained in:
James Lu 2016-04-02 09:31:18 -07:00
parent 4f08894227
commit c4273e68a4

View File

@ -831,6 +831,10 @@ class UnrealProtocol(TS6BaseProtocol):
"""Handles incoming KILLs."""
# <- :GL| KILL GLolol :hidden-1C620195!GL| (test)
# Use ts6_common's handle_kill, but coerse UIDs to nicks first.
return super().handle_kill(numeric, command, [self._getNick(args[0]), *args[1:]])
new_args = [self._getNick(args[0])]
new_args.extend(args[1:])
return super().handle_kill(numeric, command, new_args)
Class = UnrealProtocol