mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 07:55:33 +01:00
prevent applicants from receiving message board notifications
This commit is contained in:
@@ -1871,13 +1871,13 @@ func handleMsgMhfEnumerateGuildMessageBoard(s *Session, p mhfpacket.MHFPacket) {
|
|||||||
func handleMsgMhfUpdateGuildMessageBoard(s *Session, p mhfpacket.MHFPacket) {
|
func handleMsgMhfUpdateGuildMessageBoard(s *Session, p mhfpacket.MHFPacket) {
|
||||||
pkt := p.(*mhfpacket.MsgMhfUpdateGuildMessageBoard)
|
pkt := p.(*mhfpacket.MsgMhfUpdateGuildMessageBoard)
|
||||||
bf := byteframe.NewByteFrameFromBytes(pkt.Request)
|
bf := byteframe.NewByteFrameFromBytes(pkt.Request)
|
||||||
guild, _ := GetGuildInfoByCharacterId(s, s.charID)
|
guild, err := GetGuildInfoByCharacterId(s, s.charID)
|
||||||
if guild == nil {
|
applicant := false
|
||||||
if pkt.MessageOp == 5 {
|
if guild != nil {
|
||||||
doAckSimpleSucceed(s, pkt.AckHandle, make([]byte, 4))
|
applicant, _ = guild.HasApplicationForCharID(s, s.charID)
|
||||||
return
|
}
|
||||||
}
|
if err != nil || guild == nil || applicant {
|
||||||
doAckSimpleFail(s, pkt.AckHandle, make([]byte, 4))
|
doAckSimpleSucceed(s, pkt.AckHandle, make([]byte, 4))
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
switch pkt.MessageOp {
|
switch pkt.MessageOp {
|
||||||
|
|||||||
Reference in New Issue
Block a user