Services: Fix conditional on supybot.protocols.irc.experimentalExtensions

It was always true-ish because we tested the variable itself instead
of its value.
This commit is contained in:
Valentin Lorentz 2021-03-04 21:30:07 +01:00
parent f8c5221efd
commit 975a9101f4

View File

@ -659,7 +659,7 @@ class Services(callbacks.Plugin):
]) ])
def _replyToRegister(self, irc, msg, command, reply): def _replyToRegister(self, irc, msg, command, reply):
if not conf.supybot.protocols.irc.experimentalExtensions: if not conf.supybot.protocols.irc.experimentalExtensions():
self.log.warning( self.log.warning(
"Got unexpected '%s' on %s, this should not " "Got unexpected '%s' on %s, this should not "
"happen unless supybot.protocols.irc.experimentalExtensions " "happen unless supybot.protocols.irc.experimentalExtensions "