mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 21:29:24 +01:00
registerPlugin was returning the wrong group.
This commit is contained in:
parent
8f97cccb1a
commit
dda6f9be4a
@ -107,7 +107,8 @@ def registerPlugin(name, currentValue=None, public=True):
|
|||||||
publicly visible."""))
|
publicly visible."""))
|
||||||
if currentValue is not None:
|
if currentValue is not None:
|
||||||
supybot.plugins.get(name).setValue(currentValue)
|
supybot.plugins.get(name).setValue(currentValue)
|
||||||
return registerGroup(users.plugins, name)
|
registerGroup(users.plugins, name)
|
||||||
|
return group
|
||||||
|
|
||||||
def get(group, channel=None):
|
def get(group, channel=None):
|
||||||
if channel is None or not group.channelValue:
|
if channel is None or not group.channelValue:
|
||||||
|
Loading…
Reference in New Issue
Block a user