From 8a850e7f6430a1b7ab9d1d88a0723c4a8f11c831 Mon Sep 17 00:00:00 2001 From: Jeremy Fincher Date: Thu, 20 Nov 2003 01:06:27 +0000 Subject: [PATCH] Ask first before calling getpass. --- scripts/supybot-wizard | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/supybot-wizard b/scripts/supybot-wizard index d5b3ee60d..dfc6a490b 100755 --- a/scripts/supybot-wizard +++ b/scripts/supybot-wizard @@ -323,8 +323,8 @@ def main(): public servers don't. If you try to connect to a server and for some reason it just won't work, it might be that you need to set a password.""") - serverpassword = getpass('What password? If you decided not to use ' - 'a password, just press enter. ') + if yn('Do you want to set such a password?') == 'y': + serverpassword = getpass() myPrint("""Of course, having an IRC bot isn't the most useful thing in the world unless you can make that bot join some channels.""")