mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 03:02:52 +01:00
supybot-wizard: Default to port 6697 for SSL
This commit is contained in:
parent
5a1398893d
commit
b5636860bf
@ -386,9 +386,17 @@ def main():
|
||||
ip = 'no network available'
|
||||
|
||||
output("""Found %s (%s).""" % (serverString, ip))
|
||||
output("""IRC Servers almost always accept connections on port
|
||||
6667. They can, however, accept connections anywhere their admins
|
||||
feel like they wants to accept connections from.""")
|
||||
|
||||
if advanced:
|
||||
# conf.supybot.networks.<network>.ssl
|
||||
output("""Some servers allow you to use a secure connection via SSL.
|
||||
This requires having pyOpenSSL installed.""")
|
||||
if yn('Do you want to use an SSL connection?', default=False):
|
||||
network.ssl.setValue(True)
|
||||
|
||||
output("""IRC servers almost always accept connections on port
|
||||
6667 (or 6697 for SSL). They can, however, accept connections
|
||||
anywhere their admins feel like they want to accept connections from.""")
|
||||
if yn('Does this server require connection on a non-standard port?',
|
||||
default=False):
|
||||
port = 0
|
||||
@ -401,18 +409,14 @@ def main():
|
||||
except ValueError:
|
||||
output("""That's not a valid port.""")
|
||||
port = 0
|
||||
else:
|
||||
if network.ssl.value:
|
||||
port = 6697
|
||||
else:
|
||||
port = 6667
|
||||
server = ':'.join([serverString, str(port)])
|
||||
network.servers.setValue([server])
|
||||
|
||||
if advanced:
|
||||
# conf.supybot.networks.<network>.ssl
|
||||
output("""Some servers allow you to use a secure connection via SSL.
|
||||
This requires having pyOpenSSL installed.""")
|
||||
if yn('Do you want to use an SSL connection?', default=False):
|
||||
network.ssl.setValue(True)
|
||||
|
||||
# conf.supybot.nick
|
||||
# Force the user into specifying a nick if it didn't have one already
|
||||
while True:
|
||||
|
Loading…
Reference in New Issue
Block a user