mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-17 14:01:03 +01:00
applyModes: ignore unsupported prefix modes (e.g. InspIRCd's +yY)
This commit is contained in:
parent
b22f674785
commit
bd03e00c74
2
utils.py
2
utils.py
@ -155,6 +155,8 @@ def applyModes(irc, target, changedmodes):
|
|||||||
pmodelist.discard(mode[1])
|
pmodelist.discard(mode[1])
|
||||||
print('-')
|
print('-')
|
||||||
print('Final pmodelist: %s' % pmodelist)
|
print('Final pmodelist: %s' % pmodelist)
|
||||||
|
if mode[0][1] in irc.prefixmodes:
|
||||||
|
# Ignore other prefix modes such as InspIRCd's +Yy
|
||||||
continue
|
continue
|
||||||
if mode[0][0] == '+':
|
if mode[0][0] == '+':
|
||||||
# We're adding a mode
|
# We're adding a mode
|
||||||
|
Loading…
x
Reference in New Issue
Block a user