wesnothd: fix server terminating in response to unregistered login

if unregistered logins are allowed
This commit is contained in:
loonycyborg 2018-06-05 14:20:13 +03:00
parent a251808933
commit 0c0bf7f91d

View file

@ -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");