diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-09-16 12:14:08 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-09-16 12:14:08 +0300 |
commit | d6012201991a732b6b47e063a52e201450889c74 (patch) | |
tree | bd694b2fdd652bd276b9bea06a92884d129e3fd3 /src/net/eathena | |
parent | 3ff2ba0b4a6bf7e0f693d0d72ca5360767d3cc2c (diff) | |
download | manaplus-d6012201991a732b6b47e063a52e201450889c74.tar.gz manaplus-d6012201991a732b6b47e063a52e201450889c74.tar.bz2 manaplus-d6012201991a732b6b47e063a52e201450889c74.tar.xz manaplus-d6012201991a732b6b47e063a52e201450889c74.zip |
eathena: add packet CMSG_PARTY_ALLOW_INVITES 0x02c8.
Diffstat (limited to 'src/net/eathena')
-rw-r--r-- | src/net/eathena/partyhandler.cpp | 6 | ||||
-rw-r--r-- | src/net/eathena/partyhandler.h | 2 | ||||
-rw-r--r-- | src/net/eathena/protocol.h | 1 |
3 files changed, 9 insertions, 0 deletions
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp index ab5d17d47..47260cc2b 100644 --- a/src/net/eathena/partyhandler.cpp +++ b/src/net/eathena/partyhandler.cpp @@ -456,4 +456,10 @@ void PartyHandler::changeLeader(const std::string &name) const outMsg.writeInt32(being->getId()); } +void PartyHandler::allowInvite(const bool allow) const +{ + MessageOut outMsg(CMSG_PARTY_ALLOW_INVITES); + outMsg.writeInt8(allow ? 1 : 0); +} + } // namespace EAthena diff --git a/src/net/eathena/partyhandler.h b/src/net/eathena/partyhandler.h index 9459d0328..f71e5a224 100644 --- a/src/net/eathena/partyhandler.h +++ b/src/net/eathena/partyhandler.h @@ -65,6 +65,8 @@ class PartyHandler final : public MessageHandler, public Ea::PartyHandler void processPartySettings(Net::MessageIn &msg); + void allowInvite(const bool allow) const override final; + protected: void processPartyInvitationStats(Net::MessageIn &msg); diff --git a/src/net/eathena/protocol.h b/src/net/eathena/protocol.h index 1a913b75d..f5ac75da9 100644 --- a/src/net/eathena/protocol.h +++ b/src/net/eathena/protocol.h @@ -298,6 +298,7 @@ #define CMSG_PARTY_KICK 0x0103 #define CMSG_PARTY_MESSAGE 0x0108 #define CMSG_PARTY_CHANGE_LEADER 0x07da +#define CMSG_PARTY_ALLOW_INVITES 0x02c8 #define CMSG_MOVE_TO_STORAGE 0x07ec /** Move item to storage */ #define CSMG_MOVE_FROM_STORAGE 0x085b /** Remove item from storage */ |