mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fix configure() bug as pointed out by mgoldey.
This commit is contained in:
parent
f2a34f78c8
commit
5d74b591df
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user