mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-02 16:09:24 +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):
|
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')
|
||||||
|
Loading…
Reference in New Issue
Block a user