Don't bother asking about Alias if it's already been loaded.

This commit is contained in:
Jeremy Fincher 2003-11-22 06:42:11 +00:00
parent f44a155bdf
commit 7642def926

View File

@ -48,11 +48,13 @@ import callbacks
def configure(onStart, afterConnect, advanced): def configure(onStart, afterConnect, advanced):
from questions import expect, anything, something, yn from questions import expect, anything, something, yn
onStart.append('load RSS') onStart.append('load RSS')
if yn('RSS depends on the Alias module. Is that module loaded?') == 'n': if 'load Alias' not in onStart:
if yn('Do you want to load that module now?') == 'y': 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') onStart.append('load Alias')
else: 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.' print 'any further questions.'
return return
prompt = 'Would you like to add an RSS feed?' prompt = 'Would you like to add an RSS feed?'