mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Changed some bugs in configure.
This commit is contained in:
parent
f1d876288f
commit
83d587b8a3
@ -69,8 +69,8 @@ def configure(onStart, afterConnect, advanced):
|
|||||||
prompt = 'Would you like to add an RSS feed?'
|
prompt = 'Would you like to add an RSS feed?'
|
||||||
while yn(prompt) == 'y':
|
while yn(prompt) == 'y':
|
||||||
prompt = 'Would you like to add another RSS feed?'
|
prompt = 'Would you like to add another RSS feed?'
|
||||||
name = anything('What\'s the name of the website?')
|
name = something('What\'s the name of the website?')
|
||||||
url = anything('What\'s the URL of the RSS feed?')
|
url = something('What\'s the URL of the RSS feed?')
|
||||||
if yn('Would you like to add an alias for accessing ' \
|
if yn('Would you like to add an alias for accessing ' \
|
||||||
'%s\'s info?' % name) == 'y':
|
'%s\'s info?' % name) == 'y':
|
||||||
if advanced:
|
if advanced:
|
||||||
@ -79,11 +79,11 @@ def configure(onStart, afterConnect, advanced):
|
|||||||
infocmd = name + "info"
|
infocmd = name + "info"
|
||||||
print 'You will be able to access %s\'s info via the ' \
|
print 'You will be able to access %s\'s info via the ' \
|
||||||
'\'%s\' command' % (name, infocmd)
|
'\'%s\' command' % (name, infocmd)
|
||||||
|
if infocmd:
|
||||||
|
onStart.append('alias %s "rssinfo %s"' % (infocmd, url))
|
||||||
|
onStart.append('freeze %s' % infocmd)
|
||||||
onStart.append('alias %s "rsstitles %s"' % (name, url))
|
onStart.append('alias %s "rsstitles %s"' % (name, url))
|
||||||
onStart.append('freeze %s' % name)
|
onStart.append('freeze %s' % name)
|
||||||
if infocmd:
|
|
||||||
onStart.append('alias %s "rssinfo %s"' % (infocmd, url))
|
|
||||||
onStart.append('freeze %s' % infocmd)
|
|
||||||
|
|
||||||
example = utils.wrapLines("""
|
example = utils.wrapLines("""
|
||||||
<jemfinch> @list RSS
|
<jemfinch> @list RSS
|
||||||
|
Loading…
Reference in New Issue
Block a user