diff options
author | Jesusaves <cpntb1@ymail.com> | 2021-05-08 17:15:50 +0000 |
---|---|---|
committer | Jesusaves <cpntb1@ymail.com> | 2021-05-08 17:15:50 +0000 |
commit | 373b7ffae57f3649cc7f5ecaae1c499833ddb816 (patch) | |
tree | dcb2329aa61fe1fee235a005e9c18bf048502c59 | |
parent | 823d9ab3138e3d0a447bbf69b1df44bab603cb51 (diff) | |
download | hercules-373b7ffae57f3649cc7f5ecaae1c499833ddb816.tar.gz hercules-373b7ffae57f3649cc7f5ecaae1c499833ddb816.tar.bz2 hercules-373b7ffae57f3649cc7f5ecaae1c499833ddb816.tar.xz hercules-373b7ffae57f3649cc7f5ecaae1c499833ddb816.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 32c935d75..946f59207 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) ) { |