diff --git a/src/login/account.c b/src/login/account.c index 1b3b172c3d..db2eb1e94b 100644 --- a/src/login/account.c +++ b/src/login/account.c @@ -605,7 +605,7 @@ static bool mmo_auth_tosql(AccountDB_SQL* db, const struct mmo_account* acc, boo } else {// update account table - if( SQL_SUCCESS != SqlStmt_Prepare(stmt, + if( SQL_SUCCESS != SqlStmt_Prepare(stmt, #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'", #else diff --git a/src/login/ipban.c b/src/login/ipban.c index 8aa628a2cf..18e8c1b7e5 100644 --- a/src/login/ipban.c +++ b/src/login/ipban.c @@ -217,7 +217,7 @@ void ipban_init(void) { exit(EXIT_FAILURE); } ShowInfo("Ipban conection made\n"); - + if( codepage[0] != '\0' && SQL_ERROR == Sql_SetEncoding(sql_handle, codepage) ) Sql_ShowDebug(sql_handle); diff --git a/src/login/loginchrif.c b/src/login/loginchrif.c index 6a8373b81e..1ae71346f3 100644 --- a/src/login/loginchrif.c +++ b/src/login/loginchrif.c @@ -152,7 +152,7 @@ int logchrif_parse_ackusercount(int fd, int id){ /** * 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 - * 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 */ int logchrif_send_accdata(int fd, uint32 aid) { @@ -665,7 +665,7 @@ int logchrif_parse_reqvipdata(int fd) { int32 timediff = RFIFOL(fd,7); int mapfd = RFIFOL(fd,11); RFIFOSKIP(fd,15); - + if( accounts->load_num(accounts, &acc, aid ) ) { time_t now = time(NULL); time_t vip_time = acc.vip_time; diff --git a/src/login/loginclif.c b/src/login/loginclif.c index 52c52bc93a..3f839dcebd 100644 --- a/src/login/loginclif.c +++ b/src/login/loginclif.c @@ -215,7 +215,7 @@ static void logclif_auth_failed(struct login_session_data* sd, int result) { } WFIFOSET(fd,26); } -//#else +//#else else { WFIFOHEAD(fd,23); WFIFOW(fd,0) = 0x6a; @@ -230,7 +230,7 @@ static void logclif_auth_failed(struct login_session_data* sd, int result) { } WFIFOSET(fd,23); } -//#endif +//#endif } /** @@ -524,7 +524,7 @@ int logclif_parse(int fd) { case 0x01fa: // S 01fa .L .24B .16B .B .B(index of the connection in the clientinfo file (+10 if the command-line contains "pc")) case 0x027c: // S 027c .L .24B .16B .B .13B(junk) case 0x0825: // S 0825 .W .L .B .24B .27B .17B .15B .(packetsize - 0x5C)B - next = logclif_parse_reqauth(fd, sd, command, ip); + next = logclif_parse_reqauth(fd, sd, command, ip); break; // Sending request of the coding key case 0x01db: next = logclif_parse_reqkey(fd, sd); break;