wesnothd: fix server terminating in response to unregistered login

if unregistered logins are allowed

(cherry-picked from commit 0c0bf7f91d7654a7ac83861236b5e0589e1bbcaf)
This commit is contained in:
loonycyborg 2018-06-05 14:20:13 +03:00
parent e1a7e08a92
commit f8361aa7d1

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