3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-17 23:52:49 +01:00

unreal: remove duplicate conversion

This commit is contained in:
James Lu 2018-09-16 11:29:05 -07:00
parent e929fda293
commit 667fa610ec

View File

@ -214,12 +214,8 @@ class UnrealProtocol(TS6BaseProtocol):
self.apply_modes(target, modes)
if self.is_channel(target):
# Fix assignment TypeError in the expandPUID bit (sets can't be
# assigned to by index).
modes = list(modes)
modes = list(modes) # Needed for indexing
# Make sure we expand any PUIDs when sending outgoing modes...
for idx, mode in enumerate(modes):
if mode[0][-1] in self.prefixmodes: