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:
@ -22,7 +22,13 @@ class Bugtrackers(registry.SpaceSeparatedListOfStrings):
|
||||
List = ircutils.IrcSet
|
||||
|
||||
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('Bugtracker', True)
|
||||
|
||||
Bugtracker = conf.registerPlugin('Bugtracker')
|
||||
|
Reference in New Issue
Block a user