summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/clientiface.h1
-rw-r--r--src/server.cpp2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/clientiface.h b/src/clientiface.h
index 2b0ccfbb1..bf95df4a8 100644
--- a/src/clientiface.h
+++ b/src/clientiface.h
@@ -338,6 +338,7 @@ public:
u8 getMajor() const { return m_version_major; }
u8 getMinor() const { return m_version_minor; }
u8 getPatch() const { return m_version_patch; }
+ const std::string &getFull() const { return m_full_version; }
private:
// Version is stored in here after INIT before INIT2
u8 m_pending_serialization_version = SER_FMT_VER_INVALID;
diff --git a/src/server.cpp b/src/server.cpp
index 4090dd773..b74bba258 100644
--- a/src/server.cpp
+++ b/src/server.cpp
@@ -1283,7 +1283,7 @@ bool Server::getClientInfo(
*major = client->getMajor();
*minor = client->getMinor();
*patch = client->getPatch();
- *vers_string = client->getPatch();
+ *vers_string = client->getFull();
m_clients.unlock();