From ab1074cf4d91224b35fbbc217be4d39d5d5029a0 Mon Sep 17 00:00:00 2001 From: jesopo Date: Tue, 21 May 2019 10:11:09 +0100 Subject: Remove mention of `ipv4` - detect address family automatically --- src/utils/cli.py | 3 +-- src/utils/irc/__init__.py | 5 ++--- 2 files changed, 3 insertions(+), 5 deletions(-) (limited to 'src/utils') diff --git a/src/utils/cli.py b/src/utils/cli.py index 638ff749..1a8e81e8 100644 --- a/src/utils/cli.py +++ b/src/utils/cli.py @@ -10,11 +10,10 @@ def add_server(database: "Database.Database"): port = int(input("port: ")) tls = bool_input("tls?") password = input("password?: ") - ipv4 = bool_input("ipv4?") nickname = input("nickname: ") username = input("username: ") realname = input("realname: ") bindhost = input("bindhost?: ") - server_id = database.servers.add(alias, hostname, port, password, ipv4, tls, + server_id = database.servers.add(alias, hostname, port, password, tls, bindhost, nickname, username, realname) diff --git a/src/utils/irc/__init__.py b/src/utils/irc/__init__.py index a97b9479..14bbb5b0 100644 --- a/src/utils/irc/__init__.py +++ b/src/utils/irc/__init__.py @@ -226,15 +226,14 @@ def parse_format(s: str) -> str: OPT_STR = typing.Optional[str] class IRCConnectionParameters(object): def __init__(self, id: int, alias: str, hostname: str, port: int, - password: OPT_STR, tls: bool, ipv4: bool, bindhost: OPT_STR, - nickname: str, username: OPT_STR, realname: OPT_STR, + password: OPT_STR, tls: bool, bindhost: OPT_STR, nickname: str, + username: OPT_STR, realname: OPT_STR, args: typing.Dict[str, str]={}): self.id = id self.alias = alias self.hostname = hostname self.port = port self.tls = tls - self.ipv4 = ipv4 self.bindhost = bindhost self.password = password self.nickname = nickname -- cgit v1.3.1-10-gc9f91