def ban(self, roomJID, entity, reason=None, sender=None):
    '\n        Ban a user from a MUC room.\n\n        @param roomJID: The bare JID of the room.\n        @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param entity: The bare JID of the entity to be banned.\n        @type entity: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param reason: The reason for banning the entity.\n        @type reason: C{unicode}\n\n        @param sender: The entity sending the request.\n        @type sender: L{JID<twisted.words.protocols.jabber.jid.JID>}\n        '
    return self._setAffiliation(roomJID, entity, 'outcast', reason=reason, sender=sender)
Ban a user from a MUC room.

@param roomJID: The bare JID of the room.
@type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}

@param entity: The bare JID of the entity to be banned.
@type entity: L{JID<twisted.words.protocols.jabber.jid.JID>}

@param reason: The reason for banning the entity.
@type reason: C{unicode}

@param sender: The entity sending the request.
@type sender: L{JID<twisted.words.protocols.jabber.jid.JID>}
def ban(self, roomJID, entity, reason=None, sender=None):
    '\n        Ban a user from a MUC room.\n\n        @param roomJID: The bare JID of the room.\n        @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param entity: The bare JID of the entity to be banned.\n        @type entity: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param reason: The reason for banning the entity.\n        @type reason: C{unicode}\n\n        @param sender: The entity sending the request.\n        @type sender: L{JID<twisted.words.protocols.jabber.jid.JID>}\n        '
    return self._setAffiliation(roomJID, entity, 'outcast', reason=reason, sender=sender)