mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-15 09:02:30 +00:00
wesnothd: fix server terminating in response to unregistered login
if unregistered logins are allowed (cherry-picked from commit 0c0bf7f91d7654a7ac83861236b5e0589e1bbcaf)
This commit is contained in:
parent
e1a7e08a92
commit
f8361aa7d1
@ -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…
x
Reference in New Issue
Block a user