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

unreal: fix TypeError when a set is given for modes in mode()

This commit is contained in:
James Lu 2017-09-05 21:21:16 -07:00
parent 149fdde92f
commit 93704d85bf

View File

@ -224,6 +224,7 @@ class UnrealProtocol(TS6BaseProtocol):
if utils.isChannel(target): if utils.isChannel(target):
modes = list(modes) # Needed for indexing
# Make sure we expand any PUIDs when sending outgoing modes... # Make sure we expand any PUIDs when sending outgoing modes...
for idx, mode in enumerate(modes): for idx, mode in enumerate(modes):
if mode[0][-1] in self.irc.prefixmodes: if mode[0][-1] in self.irc.prefixmodes: