From 927f6e941941d1b9708790217fc02efbf33155cd Mon Sep 17 00:00:00 2001 From: Sophie Date: Mon, 9 Mar 2020 07:06:05 +0000 Subject: [PATCH] Limit recipients of party chat messages Add vendor to gitignore --- .gitignore | 1 + server/channelserver/handlers.go | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index a9d66693f..e1afd0826 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ www/tw/ www/jp/ +vendor/ bin/*.bin bin/quests/*.bin bin/scenarios/*.bin diff --git a/server/channelserver/handlers.go b/server/channelserver/handlers.go index 4b73b3892..054db6f38 100644 --- a/server/channelserver/handlers.go +++ b/server/channelserver/handlers.go @@ -344,10 +344,12 @@ func handleMsgSysCastBinary(s *Session, p mhfpacket.MHFPacket) { case CHAT_TYPE_LOCAL: s.stage.BroadcastMHF(resp, s) case CHAT_TYPE_PARTY: - // Party messages seem to work partially when a party member starts the quest - // In town it is not working yet - // TODO Send to party members only - s.stage.BroadcastMHF(resp, s) + if s.reserveStage != nil { + // Party messages seem to work partially when a party member starts the quest + // In town it is not working yet, the client now sends the chat packets + // however the other member does not accept it. + s.reserveStage.BroadcastMHF(resp, s) + } } /*