summaryrefslogtreecommitdiff
path: root/src/char/char.c
diff options
context:
space:
mode:
authorJedzkie <jedzkie13@rocketmail.com>2018-04-02 00:33:11 +0800
committerJedzkie <jedzkie13@rocketmail.com>2018-04-02 12:58:03 +0800
commit2a05dbfc2f62c6bbac7983dcec120502914567f1 (patch)
treeabe851d3fe5e4c8f250d67200b347b3c21ca4fd9 /src/char/char.c
parent584e8de359412091cb05f98b83a25fac47b5c9f2 (diff)
downloadhercules-2a05dbfc2f62c6bbac7983dcec120502914567f1.tar.gz
hercules-2a05dbfc2f62c6bbac7983dcec120502914567f1.tar.bz2
hercules-2a05dbfc2f62c6bbac7983dcec120502914567f1.tar.xz
hercules-2a05dbfc2f62c6bbac7983dcec120502914567f1.zip
Pincode Update
- Added blacklist feature - Added official message when successfully create a pincode / successfully change a pincode
Diffstat (limited to 'src/char/char.c')
-rw-r--r--src/char/char.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 0069e7f1d..f370cf5a8 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -5009,7 +5009,7 @@ void char_parse_char_pincode_window(int fd, struct char_session_data* sd) __attr
void char_parse_char_pincode_window(int fd, struct char_session_data* sd)
{
if (RFIFOL(fd,2) == sd->account_id)
- pincode->sendstate(fd, sd, PINCODE_NOTSET);
+ pincode->loginstate(fd, sd, PINCODE_LOGIN_NOTSET);
RFIFOSKIP(fd, 6);
}
@@ -6156,6 +6156,7 @@ int do_final(void) {
do_final_mapif();
loginif->final();
+ pincode->final();
if( SQL_ERROR == SQL->Query(inter->sql_handle, "DELETE FROM `%s`", ragsrvinfo_db) )
Sql_ShowDebug(inter->sql_handle);
@@ -6302,6 +6303,7 @@ int do_init(int argc, char **argv) {
//Read map indexes
mapindex->init();
+ pincode->init();
#ifdef RENEWAL
start_point.map = mapindex->name2id("iz_int");