summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormathieui <mathieui@mathieui.net>2020-12-01 19:36:40 +0100
committermathieui <mathieui@mathieui.net>2020-12-01 19:51:33 +0100
commit45a14871ee17ad1be7171abd6cd3414fcf07daca (patch)
treeea163473652f3e9a150937557180e4710cb85350
parent6ff5162fb4f593d9324f0175bf4f0036cf8aee72 (diff)
downloadslixmpp-45a14871ee17ad1be7171abd6cd3414fcf07daca.tar.gz
slixmpp-45a14871ee17ad1be7171abd6cd3414fcf07daca.tar.bz2
slixmpp-45a14871ee17ad1be7171abd6cd3414fcf07daca.tar.xz
slixmpp-45a14871ee17ad1be7171abd6cd3414fcf07daca.zip
Examples: remove wait arg to join_muc calls
it hasn’t worked in years, and I removed it recently
-rw-r--r--docs/getting_started/muc.rst7
-rwxr-xr-xexamples/muc.py2
2 files changed, 4 insertions, 5 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
diff --git a/examples/muc.py b/examples/muc.py
index e3433b8f..62e8e898 100755
--- a/examples/muc.py
+++ b/examples/muc.py
@@ -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):
"""