Merge branch 'muc-update' into 'master'

XEP-0045 examples: remove wait arg to join_muc calls

See merge request poezio/slixmpp!66
This commit is contained in:
Link Mauve 2020-12-02 17:27:47 +01:00
commit c20b72376e
2 changed files with 4 additions and 5 deletions

View file

@ -60,12 +60,11 @@ has been established:
.. code-block:: python .. code-block:: python
def start(self, event): async def start(self, event):
self.get_roster() await self.get_roster()
self.send_presence() self.send_presence()
self.plugin['xep_0045'].join_muc(self.room, self.plugin['xep_0045'].join_muc(self.room,
self.nick, self.nick)
wait=True)
Note that as in :ref:`echobot`, we need to include send an initial presence and request Note that as in :ref:`echobot`, we need to include send an initial presence and request
the roster. Next, we want to join the group chat, so we call the the roster. Next, we want to join the group chat, so we call the

View file

@ -71,7 +71,7 @@ class MUCBot(slixmpp.ClientXMPP):
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) )
def muc_message(self, msg): def muc_message(self, msg):
""" """