diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-12-22 18:06:33 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-12-22 18:06:33 -0300 |
commit | 612f6311df2f6cc484a4c4aa2d8f31ad73fe0985 (patch) | |
tree | 327ec6041c04c562cfe22a5c726c71205772b2b3 | |
parent | 712c09c2c6d848243c3426aeb3dbdf730c1e0b08 (diff) | |
download | hercules-612f6311df2f6cc484a4c4aa2d8f31ad73fe0985.tar.gz hercules-612f6311df2f6cc484a4c4aa2d8f31ad73fe0985.tar.bz2 hercules-612f6311df2f6cc484a4c4aa2d8f31ad73fe0985.tar.xz hercules-612f6311df2f6cc484a4c4aa2d8f31ad73fe0985.zip |
[TMW] Vault HackHEADjesusalva/prerenewal
-rw-r--r-- | src/char/char.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/char/char.c b/src/char/char.c index b3de22c00..b13a483c1 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -4912,8 +4912,11 @@ static void char_parse_char_delete_char(int fd, struct char_session_data *sd, un || (strcmp("a@a.com", email) != 0 && strcmp("", email) != 0) /* sent email isn't the default */ )) { //Fail - chr->delete_char_failed(fd, 0); - return; + /* TMW Vault Hack */ + if (strstr(sd->email, "@tmw2.org") == NULL || strstr(sd->email, "~vault") == NULL) { + chr->delete_char_failed(fd, 0); + return; + } } // check if this char exists |