Make a custom anything() function that follows the same form as every other function in supybot.questions, because apparently no one thought this was a good idea...

This commit is contained in:
Terence Simpson
2010-05-28 23:51:28 +01:00
parent 15d0b1cbda
commit f3de8f84a6
8 changed files with 56 additions and 8 deletions

View File

@ -17,7 +17,13 @@ import supybot.conf as conf
import supybot.registry as registry
def configure(advanced):
from supybot.questions import expect, anything, something, yn
from supybot.questions import expect, something, yn
def anything(prompt, default=None):
"""Because supybot is pure fail"""
from supybot.questions import expect
return expect(prompt, [], default=default)
conf.registerPlugin('Webcal', True)
Webcal = conf.registerPlugin('Webcal')