Mercurial > libervia-backend
comparison sat/plugins/plugin_xep_0045.py @ 2689:d715d912afac
plugin XEP-0199: implementation of XMPP Ping
author | Goffi <goffi@goffi.org> |
---|---|
date | Sat, 10 Nov 2018 10:16:38 +0100 |
parents | 9680cd958529 |
children | b35c84ea73cf |
comparison
equal
deleted
inserted
replaced
2688:943e78e18882 | 2689:d715d912afac |
---|---|
470 # create a MUC client and associate it with profile' session | 470 # create a MUC client and associate it with profile' session |
471 muc_client = client._muc_client = SatMUCClient(self) | 471 muc_client = client._muc_client = SatMUCClient(self) |
472 return muc_client | 472 return muc_client |
473 | 473 |
474 def kick(self, client, nick, room_jid, options=None): | 474 def kick(self, client, nick, room_jid, options=None): |
475 """ | 475 """Kick a participant from the room |
476 Kick a participant from the room | 476 |
477 @param nick (str): nick of the user to kick | 477 @param nick (str): nick of the user to kick |
478 @param room_jid_s (JID): jid of the room | 478 @param room_jid_s (JID): jid of the room |
479 @param options (dict): attribute with extra info (reason, password) as in #XEP-0045 | 479 @param options (dict): attribute with extra info (reason, password) as in #XEP-0045 |
480 """ | 480 """ |
481 if options is None: | 481 if options is None: |