Trimmed trailing whitespaces in /src/login

This commit is contained in:
Lemongrass3110 2016-09-05 19:36:01 +02:00
parent cc9d08538a
commit aad72b5724
4 changed files with 7 additions and 7 deletions

View File

@ -605,7 +605,7 @@ static bool mmo_auth_tosql(AccountDB_SQL* db, const struct mmo_account* acc, boo
} }
else else
{// update account table {// update account table
if( SQL_SUCCESS != SqlStmt_Prepare(stmt, if( SQL_SUCCESS != SqlStmt_Prepare(stmt,
#ifdef VIP_ENABLE #ifdef VIP_ENABLE
"UPDATE `%s` SET `userid`=?,`user_pass`=?,`sex`=?,`email`=?,`group_id`=?,`state`=?,`unban_time`=?,`expiration_time`=?,`logincount`=?,`lastlogin`=?,`last_ip`=?,`birthdate`=?,`character_slots`=?,`pincode`=?, `pincode_change`=?, `vip_time`=?, `old_group`=? WHERE `account_id` = '%d'", "UPDATE `%s` SET `userid`=?,`user_pass`=?,`sex`=?,`email`=?,`group_id`=?,`state`=?,`unban_time`=?,`expiration_time`=?,`logincount`=?,`lastlogin`=?,`last_ip`=?,`birthdate`=?,`character_slots`=?,`pincode`=?, `pincode_change`=?, `vip_time`=?, `old_group`=? WHERE `account_id` = '%d'",
#else #else

View File

@ -217,7 +217,7 @@ void ipban_init(void) {
exit(EXIT_FAILURE); exit(EXIT_FAILURE);
} }
ShowInfo("Ipban conection made\n"); ShowInfo("Ipban conection made\n");
if( codepage[0] != '\0' && SQL_ERROR == Sql_SetEncoding(sql_handle, codepage) ) if( codepage[0] != '\0' && SQL_ERROR == Sql_SetEncoding(sql_handle, codepage) )
Sql_ShowDebug(sql_handle); Sql_ShowDebug(sql_handle);

View File

@ -152,7 +152,7 @@ int logchrif_parse_ackusercount(int fd, int id){
/** /**
* Transmit account data to char_server * Transmit account data to char_server
* S 2717 aid.W email.40B exp_time.L group_id.B char_slot.B birthdate.11B pincode.5B pincode_change.L * S 2717 aid.W email.40B exp_time.L group_id.B char_slot.B birthdate.11B pincode.5B pincode_change.L
* isvip.1B char_vip.1B max_billing.1B (tot 75) * isvip.1B char_vip.1B max_billing.1B (tot 75)
* @return -1 : account not found, 1:sucess * @return -1 : account not found, 1:sucess
*/ */
int logchrif_send_accdata(int fd, uint32 aid) { int logchrif_send_accdata(int fd, uint32 aid) {
@ -665,7 +665,7 @@ int logchrif_parse_reqvipdata(int fd) {
int32 timediff = RFIFOL(fd,7); int32 timediff = RFIFOL(fd,7);
int mapfd = RFIFOL(fd,11); int mapfd = RFIFOL(fd,11);
RFIFOSKIP(fd,15); RFIFOSKIP(fd,15);
if( accounts->load_num(accounts, &acc, aid ) ) { if( accounts->load_num(accounts, &acc, aid ) ) {
time_t now = time(NULL); time_t now = time(NULL);
time_t vip_time = acc.vip_time; time_t vip_time = acc.vip_time;

View File

@ -215,7 +215,7 @@ static void logclif_auth_failed(struct login_session_data* sd, int result) {
} }
WFIFOSET(fd,26); WFIFOSET(fd,26);
} }
//#else //#else
else { else {
WFIFOHEAD(fd,23); WFIFOHEAD(fd,23);
WFIFOW(fd,0) = 0x6a; WFIFOW(fd,0) = 0x6a;
@ -230,7 +230,7 @@ static void logclif_auth_failed(struct login_session_data* sd, int result) {
} }
WFIFOSET(fd,23); WFIFOSET(fd,23);
} }
//#endif //#endif
} }
/** /**
@ -524,7 +524,7 @@ int logclif_parse(int fd) {
case 0x01fa: // S 01fa <version>.L <username>.24B <password hash>.16B <clienttype>.B <?>.B(index of the connection in the clientinfo file (+10 if the command-line contains "pc")) case 0x01fa: // S 01fa <version>.L <username>.24B <password hash>.16B <clienttype>.B <?>.B(index of the connection in the clientinfo file (+10 if the command-line contains "pc"))
case 0x027c: // S 027c <version>.L <username>.24B <password hash>.16B <clienttype>.B <?>.13B(junk) case 0x027c: // S 027c <version>.L <username>.24B <password hash>.16B <clienttype>.B <?>.13B(junk)
case 0x0825: // S 0825 <packetsize>.W <version>.L <clienttype>.B <userid>.24B <password>.27B <mac>.17B <ip>.15B <token>.(packetsize - 0x5C)B case 0x0825: // S 0825 <packetsize>.W <version>.L <clienttype>.B <userid>.24B <password>.27B <mac>.17B <ip>.15B <token>.(packetsize - 0x5C)B
next = logclif_parse_reqauth(fd, sd, command, ip); next = logclif_parse_reqauth(fd, sd, command, ip);
break; break;
// Sending request of the coding key // Sending request of the coding key
case 0x01db: next = logclif_parse_reqkey(fd, sd); break; case 0x01db: next = logclif_parse_reqkey(fd, sd); break;