def nick(self, roomJID, nick):
    "\n        Change an entity's nick name in a MUC room.\n\n        See: http://xmpp.org/extensions/xep-0045.html#changenick\n\n        @param roomJID: The JID of the room.\n        @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param nick: The new nick name within the room.\n        @type nick: C{unicode}\n        "
    occupantJID = jid.JID(tuple=(roomJID.user, roomJID.host, nick))
    presence = BasicPresence(recipient=occupantJID)
    return self._sendDeferred(presence)
Change an entity's nick name in a MUC room.

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

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

@param nick: The new nick name within the room.
@type nick: C{unicode}
def nick(self, roomJID, nick):
    "\n        Change an entity's nick name in a MUC room.\n\n        See: http://xmpp.org/extensions/xep-0045.html#changenick\n\n        @param roomJID: The JID of the room.\n        @type roomJID: L{JID<twisted.words.protocols.jabber.jid.JID>}\n\n        @param nick: The new nick name within the room.\n        @type nick: C{unicode}\n        "
    occupantJID = jid.JID(tuple=(roomJID.user, roomJID.host, nick))
    presence = BasicPresence(recipient=occupantJID)
    return self._sendDeferred(presence)