mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-02 15:44:06 +01:00
coreplugin: protect the main PyLink client too, even though it's technically manipulatable
This commit is contained in:
parent
f110ac15b0
commit
16d8a2212a
@ -117,6 +117,6 @@ def handle_mode(irc, source, command, args):
|
||||
# If the sender is not a PyLink client, and the target IS a protected
|
||||
# client, revert any forced deoper attempts.
|
||||
if utils.isInternalClient(irc, target) and not utils.isInternalClient(irc, source):
|
||||
if ('-o', None) in modes and not utils.isManipulatableClient(irc, target):
|
||||
if ('-o', None) in modes and (target == irc.pseudoclient.uid or not utils.isManipulatableClient(irc, target)):
|
||||
irc.proto.modeServer(irc.sid, target, {('+o', None)})
|
||||
utils.add_hook(handle_mode, 'MODE')
|
||||
|
Loading…
Reference in New Issue
Block a user