mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-18 14:40:51 +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:
|
else:
|
||||||
self.__parent.__call__(irc, msg)
|
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):
|
if isinstance(network, bool):
|
||||||
# Network-unaware plugin that uses 'value' as a positional
|
# Network-unaware plugin that uses 'value' as a positional
|
||||||
# argument.
|
# argument.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user