Ejemplo n.º 1
0
    def ban_member_from_group(self, group_jid, peer_jid):
        """
        Bans a member from the group

        :param group_jid: The JID of the relevant group
        :param peer_jid: The JID of the user to ban
        """
        log.info("[+] Requesting ban of user {} from group {}".format(
            peer_jid, group_jid))
        return self._send_xmpp_element(
            group_adminship.BanMemberRequest(group_jid, peer_jid))
Ejemplo n.º 2
0
 def ban_member_from_group(self, group_jid, peer_jid):
     return self.send_xmpp_element(group_adminship.BanMemberRequest(group_jid, peer_jid))