mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-24 03:29:28 +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:
parent
4f08894227
commit
c4273e68a4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user