From 7642def9268c1223442e4d1ee60fdc9f75658680 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Sat, 22 Nov 2003 06:42:11 +0000 Subject: [PATCH] Don't bother asking about Alias if it's already been loaded. --- plugins/RSS.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/plugins/RSS.py b/plugins/RSS.py index bad2c05cb..2c276deca 100644 --- a/plugins/RSS.py +++ b/plugins/RSS.py @@ -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?'