From 053e2251dc19faf17326e408716e43ae19c5280a Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Tue, 21 Dec 2021 02:47:12 -0300 Subject: Add a hack which allow Vault users to delete chars without confirmation. I mean, Vault itself should be plenty secure already :p --- src/char/char.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/char/char.c b/src/char/char.c index 66bfdd4ee..60f1df773 100644 --- a/src/char/char.c +++ b/src/char/char.c @@ -4849,8 +4849,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 -- cgit v1.2.3-60-g2f50