mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-22 11:54:42 +01:00
add nil guild failsafe
This commit is contained in:
@@ -1636,6 +1636,10 @@ func handleMsgMhfUpdateGuildMessageBoard(s *Session, p mhfpacket.MHFPacket) {
|
||||
pkt := p.(*mhfpacket.MsgMhfUpdateGuildMessageBoard)
|
||||
bf := byteframe.NewByteFrameFromBytes(pkt.Request)
|
||||
guild, _ := GetGuildInfoByCharacterId(s, s.charID)
|
||||
if guild == nil {
|
||||
doAckSimpleFail(s, pkt.AckHandle, make([]byte, 4))
|
||||
return
|
||||
}
|
||||
var titleConv, bodyConv string
|
||||
switch pkt.MessageOp {
|
||||
case 0: // Create message
|
||||
|
||||
Reference in New Issue
Block a user