diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-03-08 01:22:10 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-03-08 01:23:21 +0300 |
commit | 3064114926db1340f50292c40b3cedf18aabdd55 (patch) | |
tree | eeedeeb3e35b8687a4423360969cd5ceb1bdb592 | |
parent | 5200cf545f4db4e2f512c134536cdadfdc4934c8 (diff) | |
download | hercules-3064114926db1340f50292c40b3cedf18aabdd55.tar.gz hercules-3064114926db1340f50292c40b3cedf18aabdd55.tar.bz2 hercules-3064114926db1340f50292c40b3cedf18aabdd55.tar.xz hercules-3064114926db1340f50292c40b3cedf18aabdd55.zip |
Disconnect player from server after he enter too many wrong pincodes.
-rw-r--r-- | src/char/pincode.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/char/pincode.c b/src/char/pincode.c index b1d41bc2d..9f814b5ad 100644 --- a/src/char/pincode.c +++ b/src/char/pincode.c @@ -87,7 +87,9 @@ int pincode_compare(int fd, struct char_session_data* sd, char* pin) { } else { pincode->sendstate( fd, sd, PINCODE_WRONG ); if( pincode->maxtry && ++sd->pincode_try >= pincode->maxtry ){ - pincode->error( sd->account_id ); + pincode->error(sd->account_id); + chr->authfail_fd(fd, 0); + chr->disconnect_player(sd->account_id); } return 0; } |