summaryrefslogtreecommitdiff
path: root/src/net/eathena/partyhandler.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-09-10 18:13:44 +0300
committerAndrei Karas <akaras@inbox.ru>2014-09-10 18:13:44 +0300
commit143ec36c93ea41b4516b5c8b99f021b8bec79164 (patch)
tree8ab239e510f6feda9a89274c7976b1f61daf6449 /src/net/eathena/partyhandler.cpp
parentcb070585eb9d5c0b3cb19ef8f746b6b2f740f1c5 (diff)
downloadplus-143ec36c93ea41b4516b5c8b99f021b8bec79164.tar.gz
plus-143ec36c93ea41b4516b5c8b99f021b8bec79164.tar.bz2
plus-143ec36c93ea41b4516b5c8b99f021b8bec79164.tar.xz
plus-143ec36c93ea41b4516b5c8b99f021b8bec79164.zip
eathena: add packet CMSG_PARTY_INVITE2 0x08a9.
Diffstat (limited to 'src/net/eathena/partyhandler.cpp')
-rw-r--r--src/net/eathena/partyhandler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp
index b955101d1..43cb8066f 100644
--- a/src/net/eathena/partyhandler.cpp
+++ b/src/net/eathena/partyhandler.cpp
@@ -143,7 +143,12 @@ void PartyHandler::invite(const std::string &name) const
if (being)
{
MessageOut outMsg(CMSG_PARTY_INVITE);
- outMsg.writeInt32(being->getId());
+ outMsg.writeInt32(being->getId(), "account id");
+ }
+ else
+ {
+ MessageOut outMsg(CMSG_PARTY_INVITE2);
+ outMsg.writeString(name, 24, "nick");
}
}