mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Don't bother asking about Alias if it's already been loaded.
This commit is contained in:
parent
f44a155bdf
commit
7642def926
@ -48,11 +48,13 @@ import callbacks
|
||||
def configure(onStart, afterConnect, advanced):
|
||||
from questions import expect, anything, something, yn
|
||||
onStart.append('load RSS')
|
||||
if yn('RSS depends on the Alias module. Is that module loaded?') == 'n':
|
||||
if yn('Do you want to load that module now?') == 'y':
|
||||
if 'load Alias' not in onStart:
|
||||
print 'The RSS configure questions need the Alias plugin, but it is '
|
||||
print 'not loaded.'
|
||||
if yn('Do you want to load that plugin now?') == 'y':
|
||||
onStart.append('load Alias')
|
||||
else:
|
||||
print 'You can still use the RSS module, but you won\'t be asked'
|
||||
print 'You can still use the RSS plugin, but you won\'t be asked'
|
||||
print 'any further questions.'
|
||||
return
|
||||
prompt = 'Would you like to add an RSS feed?'
|
||||
|
Loading…
Reference in New Issue
Block a user