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:
commit
c20b72376e
2 changed files with 4 additions and 5 deletions
|
@ -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):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in a new issue