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

unreal: fix TypeError in mode() from accessing set items by index

This commit is contained in:
James Lu 2017-07-07 03:16:17 -07:00
parent 4b69edcbd7
commit bd79c71b85

View File

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