diff options
Diffstat (limited to 'src/net')
-rw-r--r-- | src/net/eathena/partyhandler.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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) { |