diff options
author | nico <nico.wellpott@uni-oldenburg.de> | 2018-07-20 18:05:41 +0200 |
---|---|---|
committer | nico <nico.wellpott@uni-oldenburg.de> | 2018-07-20 18:05:41 +0200 |
commit | abbbb88191cabffd726e15eafec8e9af4b83b85e (patch) | |
tree | 7b213c2089e39189bac49d8c899234fab54281da | |
parent | c3596c3b847285e882fea1affcf669acee0c0eb3 (diff) |
+ added ability to join multiple rooms
-rw-r--r-- | main.py | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -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):
|