def _getRoomUser(self, stanza):
    "\n        Lookup the room and user associated with the stanza's sender.\n        "
    occupantJID = stanza.sender
    if (not occupantJID):
        return (None, None)
    room = self._getRoom(occupantJID.userhostJID())
    if (room is None):
        return (None, None)
    nick = occupantJID.resource
    user = room.getUser(nick)
    return (room, user)
Lookup the room and user associated with the stanza's sender.
def _getRoomUser(self, stanza):
    "\n        \n        "
    occupantJID = stanza.sender
    if (not occupantJID):
        return (None, None)
    room = self._getRoom(occupantJID.userhostJID())
    if (room is None):
        return (None, None)
    nick = occupantJID.resource
    user = room.getUser(nick)
    return (room, user)