aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsfan5 <sfan5@live.de>2022-05-26 20:47:16 +0200
committersfan5 <sfan5@live.de>2022-05-29 14:00:19 +0200
commit85c824ed136269ee3ee0b650406ce80c8a60c014 (patch)
treed39b393312019156342b5448f29ebec916add320
parent998e4820c982c0ea9d257c15f93f1f21d85d6327 (diff)
downloadminetest-85c824ed136269ee3ee0b650406ce80c8a60c014.tar.gz
minetest-85c824ed136269ee3ee0b650406ce80c8a60c014.tar.bz2
minetest-85c824ed136269ee3ee0b650406ce80c8a60c014.zip
Make sure real disconnect reason isn't overwritten
bug introduced in 2f32044273d107e82fb1c35d4a0f616fa480cdf0
-rw-r--r--src/client/client.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/client.cpp b/src/client/client.cpp
index e078dc530..93a403e81 100644
--- a/src/client/client.cpp
+++ b/src/client/client.cpp
@@ -803,7 +803,7 @@ void Client::deletingPeer(con::Peer *peer, bool timeout)
m_access_denied = true;
if (timeout)
m_access_denied_reason = gettext("Connection timed out.");
- else
+ else if (m_access_denied_reason.empty())
m_access_denied_reason = gettext("Connection aborted (protocol error?).");
}