Skip to content

Commit 048c7f1

Browse files
committed
Add enabled config option
1 parent dc5a3d7 commit 048c7f1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

cloudbot/bot.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,8 @@ async def _init_routine(self):
300300
self.observer.start()
301301

302302
for conn in self.connections.values():
303-
conn.active = True
303+
if conn.config.get("enabled", True):
304+
conn.active = True
304305

305306
# Connect to servers
306307
await asyncio.gather(

0 commit comments

Comments
 (0)