From 45a14871ee17ad1be7171abd6cd3414fcf07daca Mon Sep 17 00:00:00 2001 From: mathieui Date: Tue, 1 Dec 2020 19:36:40 +0100 Subject: Examples: remove wait arg to join_muc calls MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it hasn’t worked in years, and I removed it recently --- docs/getting_started/muc.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'docs/getting_started') 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 -- cgit v1.2.3