Removed commented-out TXT-only login-server code that was supposed to prevent reconnection when changing account data (bugreport:1281)
git-svn-id: https://svn.code.sf.net/p/rathena/svn/trunk@12474 54d463be-8e91-2dee-dedb-b68131a5f0ec
This commit is contained in:
parent
e45a10cf13
commit
9b1df424a6
@ -267,11 +267,6 @@ int parse_admin(int fd)
|
|||||||
WBUFB(buf,6) = 0; // 0: change of statut, 1: ban
|
WBUFB(buf,6) = 0; // 0: change of statut, 1: ban
|
||||||
WBUFL(buf,7) = statut; // status or final date of a banishment
|
WBUFL(buf,7) = statut; // status or final date of a banishment
|
||||||
charif_sendallwos(-1, buf, 11);
|
charif_sendallwos(-1, buf, 11);
|
||||||
/*
|
|
||||||
for(j = 0; j < AUTH_FIFO_SIZE; j++)
|
|
||||||
if (auth_fifo[j].account_id == auth_dat[i].account_id)
|
|
||||||
auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentication)
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
auth_dat[i].state = statut;
|
auth_dat[i].state = statut;
|
||||||
memcpy(auth_dat[i].error_message, error_message, 20);
|
memcpy(auth_dat[i].error_message, error_message, 20);
|
||||||
@ -362,11 +357,6 @@ int parse_admin(int fd)
|
|||||||
if (auth_dat[i].sex != ((sex == 'S' || sex == 's') ? 2 : (sex == 'M' || sex == 'm'))) {
|
if (auth_dat[i].sex != ((sex == 'S' || sex == 's') ? 2 : (sex == 'M' || sex == 'm'))) {
|
||||||
unsigned char buf[16];
|
unsigned char buf[16];
|
||||||
WFIFOL(fd,2) = auth_dat[i].account_id;
|
WFIFOL(fd,2) = auth_dat[i].account_id;
|
||||||
/*
|
|
||||||
for(j = 0; j < AUTH_FIFO_SIZE; j++)
|
|
||||||
if (auth_fifo[j].account_id == auth_dat[i].account_id)
|
|
||||||
auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentication)
|
|
||||||
*/
|
|
||||||
auth_dat[i].sex = (sex == 'S' || sex == 's') ? 2 : (sex == 'M' || sex == 'm');
|
auth_dat[i].sex = (sex == 'S' || sex == 's') ? 2 : (sex == 'M' || sex == 'm');
|
||||||
ShowNotice("'ladmin': Modification of a sex (account: %s, new sex: %c, ip: %s)\n", auth_dat[i].userid, sex, ip);
|
ShowNotice("'ladmin': Modification of a sex (account: %s, new sex: %c, ip: %s)\n", auth_dat[i].userid, sex, ip);
|
||||||
mmo_auth_sync();
|
mmo_auth_sync();
|
||||||
@ -636,11 +626,6 @@ int parse_admin(int fd)
|
|||||||
WBUFB(buf,6) = 1; // 0: change of statut, 1: ban
|
WBUFB(buf,6) = 1; // 0: change of statut, 1: ban
|
||||||
WBUFL(buf,7) = (unsigned int)timestamp; // status or final date of a banishment
|
WBUFL(buf,7) = (unsigned int)timestamp; // status or final date of a banishment
|
||||||
charif_sendallwos(-1, buf, 11);
|
charif_sendallwos(-1, buf, 11);
|
||||||
/*
|
|
||||||
for(j = 0; j < AUTH_FIFO_SIZE; j++)
|
|
||||||
if (auth_fifo[j].account_id == auth_dat[i].account_id)
|
|
||||||
auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentication)
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
auth_dat[i].unban_time = timestamp;
|
auth_dat[i].unban_time = timestamp;
|
||||||
mmo_auth_sync();
|
mmo_auth_sync();
|
||||||
@ -696,13 +681,6 @@ int parse_admin(int fd)
|
|||||||
WBUFB(buf,6) = 1; // 0: change of statut, 1: ban
|
WBUFB(buf,6) = 1; // 0: change of statut, 1: ban
|
||||||
WBUFL(buf,7) = (unsigned int)timestamp; // status or final date of a banishment
|
WBUFL(buf,7) = (unsigned int)timestamp; // status or final date of a banishment
|
||||||
charif_sendallwos(-1, buf, 11);
|
charif_sendallwos(-1, buf, 11);
|
||||||
/*
|
|
||||||
for(j = 0; j < AUTH_FIFO_SIZE; j++)
|
|
||||||
if (auth_fifo[j].account_id == auth_dat[i].account_id) {
|
|
||||||
auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentication)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
auth_dat[i].unban_time = timestamp;
|
auth_dat[i].unban_time = timestamp;
|
||||||
mmo_auth_sync();
|
mmo_auth_sync();
|
||||||
|
@ -1335,11 +1335,6 @@ int parse_fromchar(int fd)
|
|||||||
WBUFB(buf,6) = 0; // 0: change of state, 1: ban
|
WBUFB(buf,6) = 0; // 0: change of state, 1: ban
|
||||||
WBUFL(buf,7) = state; // status or final date of a banishment
|
WBUFL(buf,7) = state; // status or final date of a banishment
|
||||||
charif_sendallwos(-1, buf, 11);
|
charif_sendallwos(-1, buf, 11);
|
||||||
/*
|
|
||||||
ARR_FIND( 0, AUTH_FIFO_SIZE, j, auth_fifo[j].account_id == account_id );
|
|
||||||
if( j < AUTH_FIFO_SIZE )
|
|
||||||
auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentication)
|
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
auth_dat[i].state = state;
|
auth_dat[i].state = state;
|
||||||
// Save
|
// Save
|
||||||
@ -1396,11 +1391,6 @@ int parse_fromchar(int fd)
|
|||||||
WBUFB(buf,6) = 1; // 0: change of status, 1: ban
|
WBUFB(buf,6) = 1; // 0: change of status, 1: ban
|
||||||
WBUFL(buf,7) = (unsigned int)timestamp; // status or final date of a banishment
|
WBUFL(buf,7) = (unsigned int)timestamp; // status or final date of a banishment
|
||||||
charif_sendallwos(-1, buf, 11);
|
charif_sendallwos(-1, buf, 11);
|
||||||
/*
|
|
||||||
ARR_FIND( 0, AUTH_FIFO_SIZE, j, auth_fifo[j].account_id == account_id );
|
|
||||||
if( j < AUTH_FIFO_SIZE )
|
|
||||||
auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentication)
|
|
||||||
*/
|
|
||||||
auth_dat[i].unban_time = timestamp;
|
auth_dat[i].unban_time = timestamp;
|
||||||
// Save
|
// Save
|
||||||
mmo_auth_sync();
|
mmo_auth_sync();
|
||||||
@ -1430,11 +1420,6 @@ int parse_fromchar(int fd)
|
|||||||
auth_dat[i].sex = sex;
|
auth_dat[i].sex = sex;
|
||||||
|
|
||||||
ShowNotice("Char-server '%s': Sex change (account: %d, new sex %c, ip: %s).\n", server[id].name, account_id, sex, ip);
|
ShowNotice("Char-server '%s': Sex change (account: %d, new sex %c, ip: %s).\n", server[id].name, account_id, sex, ip);
|
||||||
/*
|
|
||||||
ARR_FIND( 0, AUTH_FIFO_SIZE, j, auth_fifo[j].account_id == account_id );
|
|
||||||
if( j < AUTH_FIFO_SIZE )
|
|
||||||
auth_fifo[j].login_id1++; // to avoid reconnection error when come back from map-server (char-server will ask again the authentication)
|
|
||||||
*/
|
|
||||||
WBUFW(buf,0) = 0x2723;
|
WBUFW(buf,0) = 0x2723;
|
||||||
WBUFL(buf,2) = account_id;
|
WBUFL(buf,2) = account_id;
|
||||||
WBUFB(buf,6) = sex_str2num(sex);
|
WBUFB(buf,6) = sex_str2num(sex);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user