summaryrefslogtreecommitdiff
path: root/src/net
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-02 00:37:25 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-06 01:18:55 +0300
commitb0de595b642a359fabd0824372c89b51fc3968d5 (patch)
treeb27b2004a03803e63156a5160a736b64fabebd32 /src/net
parente06b40ddbe807020221c2af3b3cf5b305aa6a5eb (diff)
downloadmanaverse-b0de595b642a359fabd0824372c89b51fc3968d5.tar.gz
manaverse-b0de595b642a359fabd0824372c89b51fc3968d5.tar.bz2
manaverse-b0de595b642a359fabd0824372c89b51fc3968d5.tar.xz
manaverse-b0de595b642a359fabd0824372c89b51fc3968d5.zip
eathena: impliment packet SMSG_PARTY_INVITATION_STATS 0x02c9.
Diffstat (limited to 'src/net')
-rw-r--r--src/net/eathena/partyhandler.cpp9
-rw-r--r--src/net/eathena/partyhandler.h3
2 files changed, 12 insertions, 0 deletions
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp
index 2c4fa63e4..e2256f5eb 100644
--- a/src/net/eathena/partyhandler.cpp
+++ b/src/net/eathena/partyhandler.cpp
@@ -55,6 +55,7 @@ PartyHandler::PartyHandler() :
SMSG_PARTY_UPDATE_HP,
SMSG_PARTY_UPDATE_COORDS,
SMSG_PARTY_MESSAGE,
+ SMSG_PARTY_INVITATION_STATS,
0
};
handledMessages = _messages;
@@ -99,6 +100,9 @@ void PartyHandler::handleMessage(Net::MessageIn &msg)
case SMSG_PARTY_MESSAGE:
processPartyMessage(msg);
break;
+ case SMSG_PARTY_INVITATION_STATS:
+ processPartyInvitationStats(msg);
+ break;
default:
break;
@@ -204,4 +208,9 @@ void PartyHandler::setShareItems(const Net::PartyShare::Type share) const
outMsg.writeInt16(static_cast<int16_t>(share));
}
+void PartyHandler::processPartyInvitationStats(Net::MessageIn &msg)
+{
+ msg.readUInt8("allow party");
+}
+
} // namespace EAthena
diff --git a/src/net/eathena/partyhandler.h b/src/net/eathena/partyhandler.h
index e80c1ed71..47de4a73a 100644
--- a/src/net/eathena/partyhandler.h
+++ b/src/net/eathena/partyhandler.h
@@ -62,6 +62,9 @@ class PartyHandler final : public MessageHandler, public Ea::PartyHandler
void setShareItems(const Net::PartyShare::Type share)
const override final;
+
+ protected:
+ void processPartyInvitationStats(Net::MessageIn &msg);
};
} // namespace EAthena