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

@ -39,7 +39,7 @@ def configure(advanced):
from supybot.questions import expect
return expect(prompt, [], default=default)
conf.registerPlugin('Bantracker', True)
Bantracker = conf.registerPlugin('Bantracker', True)
def getReviewTime():
output("How many days should the bot wait before requesting a ban/quiet review?")
@ -50,7 +50,7 @@ def configure(advanced):
if review < 0:
raise TypeError
except TypeError:
output("%r is an invalid value, it must be an integer or float greater or equal to 0", review)
output("%r is an invalid value, it must be an integer or float greater or equal to 0" % review)
return getReviewTime()
else:
return review