Ask first before calling getpass.

This commit is contained in:
Jeremy Fincher 2003-11-20 01:06:27 +00:00
parent de81be01ff
commit 8a850e7f64

View File

@ -323,8 +323,8 @@ def main():
public servers don't. If you try to connect to a server and for some 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 reason it just won't work, it might be that you need to set a
password.""") password.""")
serverpassword = getpass('What password? If you decided not to use ' if yn('Do you want to set such a password?') == 'y':
'a password, just press enter. ') serverpassword = getpass()
myPrint("""Of course, having an IRC bot isn't the most useful thing in the 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.""") world unless you can make that bot join some channels.""")