registerPlugin was returning the wrong group.

This commit is contained in:
Jeremy Fincher 2004-09-21 18:37:06 +00:00
parent 8f97cccb1a
commit dda6f9be4a

View File

@ -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: