Ask for alias of first server in start.py

This commit is contained in:
jesopo 2018-09-23 10:40:19 +01:00
parent 3c3583e30c
commit 9b5c6b030c

View file

@ -45,6 +45,7 @@ if len(servers):
else:
try:
if bool_input("no servers found, add one?"):
alias = input("alias: ")
hostname = input("hostname: ")
port = int(input("port: "))
tls = bool_input("tls?")
@ -53,7 +54,7 @@ else:
nickname = input("nickname: ")
username = input("username: ")
realname = input("realname: ")
database.servers.add(hostname, port, password, ipv4,
database.servers.add(alias, hostname, port, password, ipv4,
tls, nickname, username, realname)
except KeyboardInterrupt:
print()