3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-25 04:02:45 +01:00

applyModes: ignore unsupported prefix modes (e.g. InspIRCd's +yY)

This commit is contained in:
James Lu 2015-07-05 12:53:53 -07:00
parent b22f674785
commit bd03e00c74

View File

@ -155,6 +155,8 @@ def applyModes(irc, target, changedmodes):
pmodelist.discard(mode[1])
print('-')
print('Final pmodelist: %s' % pmodelist)
if mode[0][1] in irc.prefixmodes:
# Ignore other prefix modes such as InspIRCd's +Yy
continue
if mode[0][0] == '+':
# We're adding a mode