From 667fa610ec76581416b9eeae166c8c7fd8bb7a4f Mon Sep 17 00:00:00 2001 From: James Lu Date: Sun, 16 Sep 2018 11:29:05 -0700 Subject: [PATCH] unreal: remove duplicate conversion --- protocols/unreal.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/protocols/unreal.py b/protocols/unreal.py index 2efc2a7..ad8bb8d 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -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: