mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 12:49:24 +01:00
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:
parent
9e57913674
commit
dc736799b8
@ -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.
|
||||
|
Loading…
Reference in New Issue
Block a user