summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/char/char.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 9e2400ddf..e088e416c 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -3786,7 +3786,7 @@ int parse_char(int fd)
int slot = RFIFOB(fd,2);
RFIFOSKIP(fd,3);
-
+#if PACKETVER >= 20110309
if( *pincode->enabled ){ // hack check
struct online_char_data* character;
character = (struct online_char_data*)idb_get(online_char_db, sd->account_id);
@@ -3798,7 +3798,7 @@ int parse_char(int fd)
break;
}
}
-
+#endif
if ( SQL_SUCCESS != Sql_Query(sql_handle, "SELECT `char_id` FROM `%s` WHERE `account_id`='%d' AND `char_num`='%d'", char_db, sd->account_id, slot)
|| SQL_SUCCESS != Sql_NextRow(sql_handle)
|| SQL_SUCCESS != Sql_GetData(sql_handle, 0, &data, NULL) )
@@ -3993,7 +3993,7 @@ int parse_char(int fd)
if (cmd == 0x1fb) FIFOSD_CHECK(56);
{
int cid = RFIFOL(fd,2);
-
+#if PACKETVER >= 20110309
if( *pincode->enabled ){ // hack check
struct online_char_data* character;
character = (struct online_char_data*)idb_get(online_char_db, sd->account_id);
@@ -4005,7 +4005,7 @@ int parse_char(int fd)
break;
}
}
-
+#endif
ShowInfo(CL_RED"Request Char Deletion: "CL_GREEN"%d (%d)"CL_RESET"\n", sd->account_id, cid);
memcpy(email, RFIFOP(fd,6), 40);
RFIFOSKIP(fd,( cmd == 0x68) ? 46 : 56);