summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/char/char.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/char/char.c b/src/char/char.c
index 185a412..366fd8f 100644
--- a/src/char/char.c
+++ b/src/char/char.c
@@ -1487,6 +1487,14 @@ static int char_delete(struct mmo_charstatus *cs) {
if (cs->partner_id)
char_divorce(cs);
+ // Fake account deletion to kick all active chars on the account (closes a loophole that allows chars to exist on a map server after being deleted)
+ {
+ unsigned char buf[6];
+ WBUFW(buf,0) = 0x2b13;
+ WBUFL(buf,2) = cs->account_id;
+ mapif_sendall(buf, 6);
+ }
+
return 0;
}