mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-09 02:54:14 +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
|
# If the sender is not a PyLink client, and the target IS a protected
|
||||||
# client, revert any forced deoper attempts.
|
# client, revert any forced deoper attempts.
|
||||||
if utils.isInternalClient(irc, target) and not utils.isInternalClient(irc, source):
|
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)})
|
irc.proto.modeServer(irc.sid, target, {('+o', None)})
|
||||||
utils.add_hook(handle_mode, 'MODE')
|
utils.add_hook(handle_mode, 'MODE')
|
||||||
|
Loading…
Reference in New Issue
Block a user