Exemplo n.º 1
0
    def remove_peer_from_group(self, group_jid, peer_jid):
        """
        Kicks someone out of a group

        :param group_jid: The group JID from which to remove the user
        :param peer_jid: The JID of the user to remove
        """
        log.info("[+] Requesting removal of user {} from group {}".format(
            peer_jid, group_jid))
        return self._send_xmpp_element(
            group_adminship.RemoveFromGroupRequest(group_jid, peer_jid))
Exemplo n.º 2
0
 def remove_peer_from_group(self, group_jid, peer_jid):
     return self.send_xmpp_element(group_adminship.RemoveFromGroupRequest(group_jid, peer_jid))