Fix configure() bug as pointed out by mgoldey.

This commit is contained in:
James Vega 2005-01-06 23:55:05 +00:00
parent f2a34f78c8
commit 5d74b591df

View File

@ -56,10 +56,10 @@ import supybot.callbacks as callbacks
def configure(advanced): def configure(advanced):
from supybot.questions import output, expect, anything, something, yn from supybot.questions import output, expect, anything, something, yn
conf.registerPlugin('ShrinkUrl', True) conf.registerPlugin('ShrinkUrl', True)
if yn("""This plugin offers a snarfer that will go to tinyurl.com and get if yn("""This plugin offers a snarfer that will go retrieve a shorter
a shorter version of long URLs that are sent to the channel. version of long URLs that are sent to the channel. Would you
Would you like this snarfer to be enabled?""", default=False): like this snarfer to be enabled?""", default=False):
conf.supybot.plugins.ShrinkUrl.tinyurlSnarfer.setValue(True) conf.supybot.plugins.ShrinkUrl.shrinkSnafer.setValue(True)
class ShrinkService(registry.OnlySomeStrings): class ShrinkService(registry.OnlySomeStrings):
validStrings = ('ln', 'tiny') validStrings = ('ln', 'tiny')