viewing paste Unknown #14686 | Text

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
// create temporary auth entry
    CREATE(node, struct auth_node, 1);
    node->account_id = sd->account_id;
    node->login_id1 = sd->login_id1;
    node->login_id2 = sd->login_id2;
    node->sex = sd->sex;
    node->ip = ip;
    node->version = sd->version;
    node->clienttype = sd->clienttype;
    ShowInfo("Checking auth_db input, version=%d",node->version);
    idb_put(auth_db, sd->account_id, node);
    {
        struct online_login_data* data;
        // mark client as 'online'
        data = login_add_online_user(-1, sd->account_id);
        // schedule deletion of this node
        data->waiting_disconnect = add_timer(gettick()+AUTH_TIMEOUT, login_waiting_disconnect_timer, sd->account_id, 0);
    }
 
Viewed 521 times, submitted by Guest.