summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJared Adams <jaxad0127@gmail.com>2009-04-04 22:53:23 -0600
committerJared Adams <jaxad0127@gmail.com>2009-04-04 22:53:23 -0600
commitaa6a162574e872fc37d98c1a15cb00b6fc57863d (patch)
tree918e294d8c701c0cb4b946cb1c65810b675dfb35 /src
parent6aac86cbd7f618ca0717d36149f35d845b6b821c (diff)
downloadtmwa-aa6a162574e872fc37d98c1a15cb00b6fc57863d.tar.gz
tmwa-aa6a162574e872fc37d98c1a15cb00b6fc57863d.tar.bz2
tmwa-aa6a162574e872fc37d98c1a15cb00b6fc57863d.tar.xz
tmwa-aa6a162574e872fc37d98c1a15cb00b6fc57863d.zip
Fix a character deletion loophole
Diffstat (limited to 'src')
-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;
}