mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-27 20:54:30 +01:00
relay: oops, the op check in 'link' should be specific to clientbot
(cherry picked from commit d4bf407c5d
)
This commit is contained in:
parent
141e941fcd
commit
88bd9b2791
@ -1791,7 +1791,8 @@ def link(irc, source, args):
|
|||||||
else:
|
else:
|
||||||
irc.error('You must be in %r to complete this operation.' % localchan)
|
irc.error('You must be in %r to complete this operation.' % localchan)
|
||||||
return
|
return
|
||||||
elif not irc.channels[localchan].isOpPlus(source):
|
|
||||||
|
elif irc.protoname == 'clientbot' and not irc.channels[localchan].isOpPlus(source):
|
||||||
if irc.pseudoclient and source == irc.pseudoclient.uid:
|
if irc.pseudoclient and source == irc.pseudoclient.uid:
|
||||||
irc.error('Please op the bot in %r to complete this operation.' % localchan)
|
irc.error('Please op the bot in %r to complete this operation.' % localchan)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user