'Invite a user to a room: "invite <userid> <roomid>"'

def do_invite(self, line):

    try:
        args = self._parse(line, ['userid', 'roomid'], force_keys=True)
        user_id = args['userid']
        reactor.callFromThread(self._do_invite, args['roomid'], user_id)
    except Exception as e:
        print e
