summaryrefslogtreecommitdiff
path: root/src/account-server/main-account.cpp
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-10 20:29:58 +0100
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-01-11 22:28:13 +0100
commit3c828c4c7448353858a80d1c60e47d125ed3d3e4 (patch)
tree1ba38fa3f7b0a4536c0a005ab3fbbde682a34d7f /src/account-server/main-account.cpp
parentd65dfcfa04a622effcd4cebdfaa5e713ca7627d8 (diff)
downloadmanaserv-3c828c4c7448353858a80d1c60e47d125ed3d3e4.tar.gz
manaserv-3c828c4c7448353858a80d1c60e47d125ed3d3e4.tar.bz2
manaserv-3c828c4c7448353858a80d1c60e47d125ed3d3e4.tar.xz
manaserv-3c828c4c7448353858a80d1c60e47d125ed3d3e4.zip
Made the servers report their protocol version.
As the protocol version isn't something the maintainers should set, I removed the net_clientVersion irrelevant option, replaced by the corresponding define PROTOCOL_VERSION in the manaserv_protocol.h file. A corresponding change in the client will be made. N.B.: Now, the Enet version is also reported in the log. Reviewed-by: Jaxad.
Diffstat (limited to 'src/account-server/main-account.cpp')
-rw-r--r--src/account-server/main-account.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/account-server/main-account.cpp b/src/account-server/main-account.cpp
index a0e935dd..ae24ee6d 100644
--- a/src/account-server/main-account.cpp
+++ b/src/account-server/main-account.cpp
@@ -40,6 +40,7 @@
#include "utils/stringfilter.h"
#include "utils/timer.h"
#include "defines.h"
+#include "manaserv_protocol.h"
#include <cstdlib>
#include <getopt.h>
@@ -361,6 +362,9 @@ int main(int argc, char *argv[])
#else
LOG_INFO("The Mana Account+Chat Server (unknown version)");
#endif
+ LOG_INFO("Manaserv Protocol version " << ManaServ::PROTOCOL_VERSION
+ << ", " << "Enet version " << ENET_VERSION_MAJOR << "."
+ << ENET_VERSION_MINOR << "." << ENET_VERSION_PATCH);
if (!options.verbosityChanged)
options.verbosity = static_cast<Logger::Level>(