aboutsummaryrefslogtreecommitdiff
path: root/start.py
diff options
context:
space:
mode:
authorGravatar jesopo2018-09-21 11:34:38 +0100
committerGravatar jesopo2018-09-21 11:34:38 +0100
commit62df014b2923a6534e272a09c51da0aa90756803 (patch)
tree97dcb4a7d050ca8073bd760a5d32ee6eb1500abb /start.py
parentUpdate a user's ircv3 account if a PRIVMSG has an "account" tag (diff)
Don't pass around full server details more than we have to.
Diffstat (limited to 'start.py')
-rwxr-xr-xstart.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/start.py b/start.py
index a69ad0d6..8c700080 100755
--- a/start.py
+++ b/start.py
@@ -29,10 +29,9 @@ whitelist = bot.get_setting("module-whitelist", [])
blacklist = bot.get_setting("module-blacklist", [])
bot.modules.load_modules(whitelist=whitelist, blacklist=blacklist)
-server_details = database.servers.get_all()
servers = []
-for server_detail in server_details:
- server = bot.add_server(*server_detail)
+for server_id, alias in database.servers.get_all():
+ server = bot.add_server(server_id, connect=False)
if not server == None:
servers.append(server)
if len(servers):