summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-16 12:14:08 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-16 12:14:08 +0300
commitd6012201991a732b6b47e063a52e201450889c74 (patch)
treebd694b2fdd652bd276b9bea06a92884d129e3fd3 /src
parent3ff2ba0b4a6bf7e0f693d0d72ca5360767d3cc2c (diff)
downloadmanaplus-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')
-rw-r--r--src/net/eathena/partyhandler.cpp6
-rw-r--r--src/net/eathena/partyhandler.h2
-rw-r--r--src/net/eathena/protocol.h1
-rw-r--r--src/net/partyhandler.h2
-rw-r--r--src/net/tmwa/partyhandler.cpp4
-rw-r--r--src/net/tmwa/partyhandler.h2
6 files changed, 17 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 */
diff --git a/src/net/partyhandler.h b/src/net/partyhandler.h
index 3f9825eec..ac42fe2cd 100644
--- a/src/net/partyhandler.h
+++ b/src/net/partyhandler.h
@@ -72,6 +72,8 @@ class PartyHandler notfinal
virtual void changeLeader(const std::string &name) const = 0;
+ virtual void allowInvite(const bool allow) const = 0;
+
virtual void clear() const = 0;
virtual ChatTab *getTab() const = 0;
diff --git a/src/net/tmwa/partyhandler.cpp b/src/net/tmwa/partyhandler.cpp
index 0ae327edb..701fb9bff 100644
--- a/src/net/tmwa/partyhandler.cpp
+++ b/src/net/tmwa/partyhandler.cpp
@@ -379,4 +379,8 @@ void PartyHandler::changeLeader(const std::string &name A_UNUSED) const
{
}
+void PartyHandler::allowInvite(const bool allow A_UNUSED) const
+{
+}
+
} // namespace TmwAthena
diff --git a/src/net/tmwa/partyhandler.h b/src/net/tmwa/partyhandler.h
index 881f3cf3e..112a36d54 100644
--- a/src/net/tmwa/partyhandler.h
+++ b/src/net/tmwa/partyhandler.h
@@ -63,6 +63,8 @@ class PartyHandler final : public MessageHandler, public Ea::PartyHandler
void changeLeader(const std::string &name) const override final;
+ void allowInvite(const bool allow) const override final;
+
protected:
void processPartySettings(Net::MessageIn &msg);