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
def start(self, event):
self.get_roster()
async def start(self, event):
await self.get_roster()
self.send_presence()
self.plugin['xep_0045'].join_muc(self.room,
self.nick,
wait=True)
self.nick)
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

View file

@ -71,7 +71,7 @@ class MUCBot(slixmpp.ClientXMPP):
self.nick,
# If a room password is needed, use:
# password=the_room_password,
wait=True)
)
def muc_message(self, msg):
"""