summaryrefslogtreecommitdiff
path: root/src/map/clif.c
diff options
context:
space:
mode:
authorFate <fate-tmw@googlemail.com>2009-05-14 10:20:57 +0000
committerFate <fate-tmw@googlemail.com>2009-05-14 10:20:57 +0000
commit4e7a458308e2c3c6670489da43d06bd25c2db92c (patch)
treea24e10e4e4a7c2bfc2c298b85440347816cc04a7 /src/map/clif.c
parent226d345c10e5271f026584083090e46ebc580f3e (diff)
downloadtmwa-4e7a458308e2c3c6670489da43d06bd25c2db92c.tar.gz
tmwa-4e7a458308e2c3c6670489da43d06bd25c2db92c.tar.bz2
tmwa-4e7a458308e2c3c6670489da43d06bd25c2db92c.tar.xz
tmwa-4e7a458308e2c3c6670489da43d06bd25c2db92c.zip
Added pc_logout() hook to process players who are logging out
When poisoned and logging out, set hp to 1 to avoid cheap poison cure exploit
Diffstat (limited to 'src/map/clif.c')
-rw-r--r--src/map/clif.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index e5fa002..ba9f6a5 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -8351,6 +8351,7 @@ static int clif_parse(int fd) {
// �ڑ����؂��Ă��̂Ō��n��
if (!chrif_isconnect() || session[fd]->eof) { // char�I�Ɍq����ĂȂ��Ԃ͐ڑ��֎~ (!chrif_isconnect())
if (sd && sd->state.auth) {
+ pc_logout(sd);
clif_quitsave(fd, sd);
if (sd->status.name != NULL)
printf("Player [%s] has logged off your server.\n", sd->status.name); // Player logout display [Valaris]