Make configure() do something for all plugins, also fix a couple of things from r197-203

This commit is contained in:
Terence Simpson
2010-05-29 14:36:43 +01:00
parent 3676ea1efd
commit 55ca23f755
7 changed files with 112 additions and 14 deletions

View File

@ -44,8 +44,16 @@ def configure(advanced):
from supybot.questions import expect
return expect(prompt, [], default=default)
conf.registerPlugin('Lart', True)
Lart = conf.registerPlugin('Lart', True)
enabled = yn("Enable Lart for all channels?", default=Lart.enabled._default)
if advanced:
showIds = yn("Show the ID of a lart when it is shown?", default=Lart.showIds._default)
else:
showIds = Lart.showIds._default
Lart.enabled.setValue(enabled)
Lart.showIds.setValue(showIds)
Lart = conf.registerPlugin('Lart')
# This is where your configuration variables (if any) should go. For example: