summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-12-22 18:06:33 -0300
committerJesusaves <cpntb1@ymail.com>2021-12-22 18:06:33 -0300
commit612f6311df2f6cc484a4c4aa2d8f31ad73fe0985 (patch)
tree327ec6041c04c562cfe22a5c726c71205772b2b3
parent712c09c2c6d848243c3426aeb3dbdf730c1e0b08 (diff)
downloadhercules-jesusalva/prerenewal.tar.gz
hercules-jesusalva/prerenewal.tar.bz2
hercules-jesusalva/prerenewal.tar.xz
hercules-jesusalva/prerenewal.zip
[TMW] Vault HackHEADjesusalva/prerenewal
-rw-r--r--src/char/char.c7
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