workaround for infinite updateguildmessageboard packets

This commit is contained in:
wish
2022-07-16 04:39:29 +10:00
parent 28b6c03d08
commit 36537be9d6

View File

@@ -1783,6 +1783,10 @@ func handleMsgMhfUpdateGuildMessageBoard(s *Session, p mhfpacket.MHFPacket) {
bf := byteframe.NewByteFrameFromBytes(pkt.Request)
guild, _ := GetGuildInfoByCharacterId(s, s.charID)
if guild == nil {
if pkt.MessageOp == 5 {
doAckSimpleSucceed(s, pkt.AckHandle, make([]byte, 4))
return
}
doAckSimpleFail(s, pkt.AckHandle, make([]byte, 4))
return
}