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