summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-11-04 20:19:53 +0300
committerAndrei Karas <akaras@inbox.ru>2016-11-04 21:16:31 +0300
commitc5a5274c86201b74325a8b84ab4543c73959c5d5 (patch)
treedfc3e7a8e584a2f42e1dcd70a8ce9837ac448549 /src/net/eathena/partyhandler.cpp
parentcb6572ebd60ecc525c5a236a26eefc673841f056 (diff)
downloadmanaverse-c5a5274c86201b74325a8b84ab4543c73959c5d5.tar.gz
manaverse-c5a5274c86201b74325a8b84ab4543c73959c5d5.tar.bz2
manaverse-c5a5274c86201b74325a8b84ab4543c73959c5d5.tar.xz
manaverse-c5a5274c86201b74325a8b84ab4543c73959c5d5.zip
Dont send some packets with unsupported server versions.
Diffstat (limited to 'src/net/eathena/partyhandler.cpp')
-rw-r--r--src/net/eathena/partyhandler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp
index df9e43dee..2afc6876c 100644
--- a/src/net/eathena/partyhandler.cpp
+++ b/src/net/eathena/partyhandler.cpp
@@ -63,7 +63,6 @@ void PartyHandler::invite(const std::string &name) const
{
if (!actorManager)
return;
-
const Being *const being = actorManager->findBeingByName(
name, ActorType::Player);
if (being)
@@ -73,6 +72,8 @@ void PartyHandler::invite(const std::string &name) const
}
else
{
+ if (packetVersion < 20070227)
+ return;
createOutPacket(CMSG_PARTY_INVITE2);
outMsg.writeString(name, 24, "nick");
}