From abbbb88191cabffd726e15eafec8e9af4b83b85e Mon Sep 17 00:00:00 2001 From: nico Date: Fri, 20 Jul 2018 18:05:41 +0200 Subject: + added ability to join multiple rooms --- main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- cgit v1.2.3-54-g00ecf