From ade52fa9b4255a9031ab4d567606f0d22ea6089c Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 7 Sep 2014 21:02:57 +0300 Subject: eathena: fix packet SMSG_PARTY_MESSAGE 0x0109. --- src/net/eathena/partyhandler.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/net/eathena/partyhandler.cpp') diff --git a/src/net/eathena/partyhandler.cpp b/src/net/eathena/partyhandler.cpp index 265f4cc0e..6748666c0 100644 --- a/src/net/eathena/partyhandler.cpp +++ b/src/net/eathena/partyhandler.cpp @@ -387,8 +387,12 @@ void PartyHandler::processPartyMessage(Net::MessageIn &msg) const if (msgLength <= 0) return; - const int id = msg.readInt32(); - const std::string chatMsg = msg.readString(msgLength); + const int id = msg.readInt32("id"); + std::string chatMsg = msg.readString(msgLength, "message"); + + const size_t pos = chatMsg.find(" : ", 0); + if (pos != std::string::npos) + chatMsg.erase(0, pos + 3); if (Ea::taParty && Ea::partyTab) { -- cgit v1.2.3-70-g09d2