From 93ad1853b1825806cfb71f56c7da87c4dbf4cd76 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Tue, 19 Jan 2021 20:39:51 +0100 Subject: [PATCH] Fix multiple rooms in config file Closes https://git.autonomic.zone/decentral1se/xbotlib/issues/33. --- CHANGELOG.md | 1 + xbotlib.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e875314..ba376d8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ # xbotlib 0.14.0 (2021-01-19) - Reduce generated config flow to only mandatory options +- Fix support for multiple rooms in configuration file ([#33](https://git.autonomic.zone/decentral1se/xbotlib/issues/33)) # xbotlib 0.13.1 (2021-01-19) diff --git a/xbotlib.py b/xbotlib.py index 74bd764..2b42f70 100644 --- a/xbotlib.py +++ b/xbotlib.py @@ -133,7 +133,7 @@ class Config: if rooms is None: return None - return rooms.split(",") + return [room.strip() for room in rooms.split(",")] @property def no_auto_join(self):