mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 01:09:22 +01:00
relay: oops, the op check in 'link' should be specific to clientbot
This commit is contained in:
parent
b202954be4
commit
d4bf407c5d
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user