summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/main.py b/main.py
index e170d43..b476c80 100644
--- a/main.py
+++ b/main.py
@@ -42,7 +42,9 @@ class QueryBot(slixmpp.ClientXMPP):
self.get_roster()
# If a room password is needed, use: password=the_room_password
- self.plugin['xep_0045'].join_muc(self.room, self.nick, wait=True)
+ for rooms in self.room.split(sep=","):
+ self.plugin['xep_0045'].join_muc(rooms, self.nick, wait=True)
+
@staticmethod
def precheck(line):