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
1 changed files with 2 additions and 1 deletions

View File

@ -107,7 +107,8 @@ def registerPlugin(name, currentValue=None, public=True):
publicly visible."""))
if currentValue is not None:
supybot.plugins.get(name).setValue(currentValue)
return registerGroup(users.plugins, name)
registerGroup(users.plugins, name)
return group
def get(group, channel=None):
if channel is None or not group.channelValue: