diff --git a/src/Database.py b/src/Database.py index 8c7e7f0d..27e4f113 100644 --- a/src/Database.py +++ b/src/Database.py @@ -12,9 +12,9 @@ class Servers(Table): self.database.execute( """INSERT INTO servers (alias, hostname, port, password, ipv4, tls, bindhost, nickname, username, realname) VALUES ( - ?, ?, ?, ?, ?, ?, ?, ?, ?)""", - [hostname, port, password, ipv4, tls, bindhost, nickname, username, - realname]) + ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)""", + [alias, hostname, port, password, ipv4, tls, bindhost, nickname, + username, realname]) def get_all(self): return self.database.execute_fetchall( "SELECT server_id, alias FROM servers") diff --git a/start.py b/start.py index ced525da..b7d7f2cb 100755 --- a/start.py +++ b/start.py @@ -75,8 +75,9 @@ else: nickname = input("nickname: ") username = input("username: ") realname = input("realname: ") + bindhost = input("bindhost?: ") bot.database.servers.add(alias, hostname, port, password, ipv4, - tls, nickname, username, realname) + tls, bindhost, nickname, username, realname) except KeyboardInterrupt: print() pass