summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornico <nico.wellpott@uni-oldenburg.de>2018-07-20 18:05:41 +0200
committernico <nico.wellpott@uni-oldenburg.de>2018-07-20 18:05:41 +0200
commitabbbb88191cabffd726e15eafec8e9af4b83b85e (patch)
tree7b213c2089e39189bac49d8c899234fab54281da
parentc3596c3b847285e882fea1affcf669acee0c0eb3 (diff)
+ added ability to join multiple rooms
-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):