wesnothd: fix server terminating in response to unregistered login
if unregistered logins are allowed
This commit is contained in:
parent
608d39f45a
commit
65643adab8
1 changed files with 1 additions and 3 deletions
|
@ -187,9 +187,7 @@ fuh::BAN_TYPE fuh::user_is_banned(const std::string& name, const std::string& ad
|
|||
return BAN_IP;
|
||||
}
|
||||
|
||||
if(!user_exists(name)) {
|
||||
throw error("No user with the name '" + name + "' exists.");
|
||||
}
|
||||
if(!user_exists(name)) return BAN_NONE;
|
||||
|
||||
try {
|
||||
auto uid = get_detail_for_user<unsigned int>(name, "user_id");
|
||||
|
|
Loading…
Add table
Reference in a new issue