From dc736799b8d1cf7004f6f299b372b97ddbcba274 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Thu, 14 May 2020 18:43:54 +0200 Subject: [PATCH] callbacks: Prevent passing 'value' as positional argument to registryValue. In case we need to add other arguments in the future. --- src/callbacks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/callbacks.py b/src/callbacks.py index c2c0d8374..d6c95709c 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -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.