diff options
| author | 2019-10-29 18:00:38 +0000 | |
|---|---|---|
| committer | 2019-10-29 18:00:38 +0000 | |
| commit | 40a340e94fe0000fd03e5fcb72635672b26527ca (patch) | |
| tree | 82cc7e11869b5b5abf051dd6c5f8ef6cd1786ec0 /src/utils | |
| parent | utils.irc doesn't need to know about the whole of utils (diff) | |
| signature | ||
utils.cli shouldn't know about Database
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/cli.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/cli.py b/src/utils/cli.py index 1a8e81e8..2c2b3e3b 100644 --- a/src/utils/cli.py +++ b/src/utils/cli.py @@ -1,10 +1,10 @@ -from src import Database +from . import irc def bool_input(s: str): result = input("%s (Y/n): " % s) return not result or result[0].lower() in ["", "y"] -def add_server(database: "Database.Database"): +def add_server(): alias = input("alias: ") hostname = input("hostname: ") port = int(input("port: ")) @@ -15,5 +15,5 @@ def add_server(database: "Database.Database"): realname = input("realname: ") bindhost = input("bindhost?: ") - server_id = database.servers.add(alias, hostname, port, password, tls, + return irc.IRCConnectionParameters(-1, alias, hostname, port, password, tls, bindhost, nickname, username, realname) |
