summaryrefslogtreecommitdiff
path: root/src/login/login.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/login/login.c')
-rw-r--r--src/login/login.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/login/login.c b/src/login/login.c
index 1a5c80679..c16dabf4e 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) ) {