mirror of
https://github.com/jlu5/PyLink.git
synced 2025-06-18 20:57:22 +02: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:
|
except IndexError:
|
||||||
real_mode = mode
|
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:
|
# 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
|
# 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']
|
# the person from the corresponding prefix mode list (e.g. c.prefixmodes['op']
|
||||||
|
Loading…
x
Reference in New Issue
Block a user