diff --git a/utils.py b/utils.py index 24dc332..48a05dc 100644 --- a/utils.py +++ b/utils.py @@ -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