summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyhandler.cpp
diff options
context:
space:
mode:
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");
}