summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorshennetsind <ind@henn.et>2013-03-31 16:02:26 -0300
committershennetsind <ind@henn.et>2013-03-31 16:02:26 -0300
commitfcd0ceaa3461a95a3f98364854136e12ae80604f (patch)
treef8a664ad6b47ec29aed096cf89b17f69ba113f3a /src/char/char.c
parentb52b15589ccf98ed496344da4f2d976d8fd2f660 (diff)
downloadhercules-fcd0ceaa3461a95a3f98364854136e12ae80604f.tar.gz
hercules-fcd0ceaa3461a95a3f98364854136e12ae80604f.tar.bz2
hercules-fcd0ceaa3461a95a3f98364854136e12ae80604f.tar.xz
hercules-fcd0ceaa3461a95a3f98364854136e12ae80604f.zip
Fixed a login bug with clients from before 20110309
servers with pincode enabled would always reject char selection Signed-off-by: shennetsind <ind@henn.et>
Diffstat (limited to 'src/char/char.c')
-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);