3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-13 13:42:37 +01:00

relay: oops, the op check in 'link' should be specific to clientbot

(cherry picked from commit d4bf407c5d)
This commit is contained in:
James Lu 2018-06-07 13:44:06 -07:00
parent 141e941fcd
commit 88bd9b2791

View File

@ -1791,7 +1791,8 @@ def link(irc, source, args):
else:
irc.error('You must be in %r to complete this operation.' % localchan)
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:
irc.error('Please op the bot in %r to complete this operation.' % localchan)
else: