def leave(self, roomJID):
    '\n        Leave a MUC room.\n\n        See: http://xmpp.org/extensions/xep-0045.html#exit\n\n        @param roomJID: The Room JID of the room to leave.\n        @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}\n        '

    def cb(presence):
        self._removeRoom(roomJID)
    d = MUCClientProtocol.leave(self, roomJID)
    d.addCallback(cb)
    return d
Leave a MUC room.

See: http://xmpp.org/extensions/xep-0045.html#exit

@param roomJID: The Room JID of the room to leave.
@type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}
def leave(self, roomJID):
    '\n        Leave a MUC room.\n\n        See: http://xmpp.org/extensions/xep-0045.html#exit\n\n        @param roomJID: The Room JID of the room to leave.\n        @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}\n        '

    def cb(presence):
        self._removeRoom(roomJID)
    d = MUCClientProtocol.leave(self, roomJID)
    d.addCallback(cb)
    return d