diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-08 14:13:10 -0300 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-08 14:13:10 -0300 |
commit | ecd7e57bec8bd85c6121004ec88376d7c7138d30 (patch) | |
tree | b919f1e24efa192ece244df3f576a892ac5a5a2d | |
parent | 7b8349bfd450728416a79fd796de48f2c9229f6c (diff) | |
download | hercules-ecd7e57bec8bd85c6121004ec88376d7c7138d30.tar.gz hercules-ecd7e57bec8bd85c6121004ec88376d7c7138d30.tar.bz2 hercules-ecd7e57bec8bd85c6121004ec88376d7c7138d30.tar.xz hercules-ecd7e57bec8bd85c6121004ec88376d7c7138d30.zip |
Reserve first char "~" for vault accounts.
-rw-r--r-- | src/login/login.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/login/login.c b/src/login/login.c index 580f79ebb..6fb39a74c 100644 --- a/src/login/login.c +++ b/src/login/login.c @@ -1021,6 +1021,8 @@ static int login_mmo_auth_new(const char *userid, const char *pass, const char s // check for invalid inputs if( sex != 'M' && sex != 'F' ) return 0; // 0 = Unregistered ID + if ( strncmp(userid, "~", strlen("~")) == 0 ) + return 0; // 0 = Unregistered ID // check if the account doesn't exist already if( accounts->load_str(accounts, &acc, userid) ) { |