From 88bd9b2791bf079bcd71e72d0a27d4e9a3a0f9a4 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 7 Jun 2018 13:44:06 -0700 Subject: [PATCH] relay: oops, the op check in 'link' should be specific to clientbot (cherry picked from commit d4bf407c5d891edad4ab7cd2ca4f6dc71a9f353c) --- plugins/relay.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/relay.py b/plugins/relay.py index caa021b..59cffee 100644 --- a/plugins/relay.py +++ b/plugins/relay.py @@ -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: