+ added ability to join multiple rooms

This commit is contained in:
nico 2018-07-20 18:05:41 +02:00
parent c3596c3b84
commit abbbb88191

View file

@ -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):