3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-01 09:19:23 +01:00

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

This commit is contained in:
James Lu 2018-06-07 13:44:06 -07:00
parent b202954be4
commit d4bf407c5d

View File

@ -2276,7 +2276,7 @@ def link(irc, source, args):
irc.error('You must be in %r to complete this operation.' % localchan)
return
elif not irc.channels[localchan].is_op_plus(source):
elif irc.protoname == 'clientbot' and not irc.channels[localchan].is_op_plus(source):
if irc.pseudoclient and source == irc.pseudoclient.uid:
irc.error('Please op the bot in %r to complete this operation.' % localchan)
else: