summaryrefslogtreecommitdiff
path: root/src/net/tmwa/loginhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-11-06 17:19:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-11-06 17:29:51 +0300
commit208da05ae612c118f1f6d91dca7bbd8670cf2897 (patch)
treef6e4395b08cce28ac52a20ba3dbe2b78322c652b /src/net/tmwa/loginhandler.cpp
parent4a688fa73264495d6f0db661e6d3d5c4630ed6df (diff)
downloadmanaplus-208da05ae612c118f1f6d91dca7bbd8670cf2897.tar.gz
manaplus-208da05ae612c118f1f6d91dca7bbd8670cf2897.tar.bz2
manaplus-208da05ae612c118f1f6d91dca7bbd8670cf2897.tar.xz
manaplus-208da05ae612c118f1f6d91dca7bbd8670cf2897.zip
eathena: add packets SMSG_SERVER_VERSION_RESPONSE 0x7531
and CMSG_SERVER_VERSION_REQUEST 0x7530
Diffstat (limited to 'src/net/tmwa/loginhandler.cpp')
-rw-r--r--src/net/tmwa/loginhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/tmwa/loginhandler.cpp b/src/net/tmwa/loginhandler.cpp
index b0e381407..c4fe39e64 100644
--- a/src/net/tmwa/loginhandler.cpp
+++ b/src/net/tmwa/loginhandler.cpp
@@ -110,7 +110,8 @@ void LoginHandler::connect()
return;
mNetwork->connect(mServer);
- createOutPacket(CMSG_SERVER_VERSION_REQUEST);
+ if (serverFeatures->haveServerVersion())
+ createOutPacket(CMSG_SERVER_VERSION_REQUEST);
}
bool LoginHandler::isConnected() const