summaryrefslogtreecommitdiff
path: root/docs/getting_started
diff options
context:
space:
mode:
authorLink Mauve <linkmauve@linkmauve.fr>2020-12-02 17:27:47 +0100
committerLink Mauve <linkmauve@linkmauve.fr>2020-12-02 17:27:47 +0100
commitc20b72376e0ae970aeb88bc2b48dc29a586c339c (patch)
treeea163473652f3e9a150937557180e4710cb85350 /docs/getting_started
parent6ff5162fb4f593d9324f0175bf4f0036cf8aee72 (diff)
parent45a14871ee17ad1be7171abd6cd3414fcf07daca (diff)
downloadslixmpp-c20b72376e0ae970aeb88bc2b48dc29a586c339c.tar.gz
slixmpp-c20b72376e0ae970aeb88bc2b48dc29a586c339c.tar.bz2
slixmpp-c20b72376e0ae970aeb88bc2b48dc29a586c339c.tar.xz
slixmpp-c20b72376e0ae970aeb88bc2b48dc29a586c339c.zip
Merge branch 'muc-update' into 'master'
XEP-0045 examples: remove wait arg to join_muc calls See merge request poezio/slixmpp!66
Diffstat (limited to 'docs/getting_started')
-rw-r--r--docs/getting_started/muc.rst7
1 files changed, 3 insertions, 4 deletions
diff --git a/docs/getting_started/muc.rst b/docs/getting_started/muc.rst
index 653175eb..0b5cd1f8 100644
--- a/docs/getting_started/muc.rst
+++ b/docs/getting_started/muc.rst
@@ -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