callbacks: Prevent passing 'value' as positional argument to registryValue.

In case we need to add other arguments in the future.
This commit is contained in:
Valentin Lorentz 2020-05-14 18:43:54 +02:00
parent 9e57913674
commit dc736799b8

View File

@ -1426,7 +1426,7 @@ class PluginMixin(BasePlugin, irclib.IrcCallback):
else:
self.__parent.__call__(irc, msg)
def registryValue(self, name, channel=None, network=None, value=True):
def registryValue(self, name, channel=None, network=None, *, value=True):
if isinstance(network, bool):
# Network-unaware plugin that uses 'value' as a positional
# argument.