Examples: remove wait arg to join_muc calls
it hasn’t worked in years, and I removed it recently
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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):
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user