Merge pull request #1 from jesopo/master
Ask for alias of first server in start.py
This commit is contained in:
commit
f58347e6f4
1 changed files with 2 additions and 1 deletions
3
start.py
3
start.py
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue