mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
_apply_modes: don't add prefix modes to mode sets even when prefixmodes=None
This commit is contained in:
parent
054680c806
commit
1413aa6042
@ -684,7 +684,8 @@ class PyLinkNetworkCoreWithUtils(PyLinkNetworkCore):
|
||||
except IndexError:
|
||||
real_mode = mode
|
||||
|
||||
if prefixmodes is not None and is_channel:
|
||||
if is_channel:
|
||||
if prefixmodes is not None:
|
||||
# We only handle +qaohv for now. Iterate over every supported mode:
|
||||
# if the IRCd supports this mode and it is the one being set, add/remove
|
||||
# the person from the corresponding prefix mode list (e.g. c.prefixmodes['op']
|
||||
|
Loading…
Reference in New Issue
Block a user