diff options
Diffstat (limited to 'config.py')
-rw-r--r-- | config.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/config.py b/config.py index e69528d..0844a1b 100644 --- a/config.py +++ b/config.py @@ -26,7 +26,7 @@ def load(filepath: str): server = config_yaml["server"] hostname, port_s = server.split(":", 1) - tls = False + tls = None if port_s.startswith("+"): tls = True @@ -42,8 +42,8 @@ def load(filepath: str): access_token=acct["access_token"], api_base_url=acct["api_base_url"], ) - if "channel" in acct: - channels[acct["channel"]] = acct["name"] + for channel in acct["channels"]: + channels[channel] = acct["name"] return Config( (hostname, port, tls), |