parameter wait in join_muc entfernt

This commit is contained in:
example 2021-10-18 20:52:05 +02:00
parent f937e421c9
commit 1a506f8d79

View file

@ -57,10 +57,10 @@ class IdleBot(slixmpp.ClientXMPP):
room -- The room to join. room -- The room to join.
''' '''
self.plugin['xep_0045'].join_muc(room, self.plugin['xep_0045'].join_muc(room,
self.nick, self.nick) # ,
# If a room password is needed, use: # If a room password is needed, use:
# password=the_room_password, # password=the_room_password,
wait=True) # wait=True)
logging.info('Joined room {}'.format(room)) logging.info('Joined room {}'.format(room))
self.room_roster[room] = [] self.room_roster[room] = []
@ -89,7 +89,7 @@ class IdleBot(slixmpp.ClientXMPP):
self.send_message(mto = room, self.send_message(mto = room,
mbody = greeting, mbody = greeting,
mtype = 'groupchat') mtype = 'groupchat')
def muc_offline(self, presence): def muc_offline(self, presence):
""" """
Process a presence stanza from a chat room. At first we look Process a presence stanza from a chat room. At first we look
@ -114,7 +114,7 @@ class IdleBot(slixmpp.ClientXMPP):
if nick in self.room_roster[room]: if nick in self.room_roster[room]:
self.room_roster[room].remove(nick) self.room_roster[room].remove(nick)
logging.debug('Roster: {}'.format(self.room_roster)) logging.debug('Roster: {}'.format(self.room_roster))
def reconnect(self, event): def reconnect(self, event):
''' '''
Deals with alls events for disconnections. Tryes to reconnect. Deals with alls events for disconnections. Tryes to reconnect.