mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-17 01:15:42 +01:00
refactored guild and guild alliance into internal/service
This commit is contained in:
@@ -2,6 +2,7 @@ package channelserver
|
||||
|
||||
import (
|
||||
"erupe-ce/config"
|
||||
"erupe-ce/internal/service"
|
||||
ps "erupe-ce/utils/pascalstring"
|
||||
"fmt"
|
||||
"os"
|
||||
@@ -116,8 +117,8 @@ type RengokuScore struct {
|
||||
func handleMsgMhfEnumerateRengokuRanking(s *Session, db *sqlx.DB, p mhfpacket.MHFPacket) {
|
||||
pkt := p.(*mhfpacket.MsgMhfEnumerateRengokuRanking)
|
||||
|
||||
guild, _ := GetGuildInfoByCharacterId(s, s.CharID)
|
||||
isApplicant, _ := guild.HasApplicationForCharID(s, s.CharID)
|
||||
guild, _ := service.GetGuildInfoByCharacterId(s.CharID)
|
||||
isApplicant, _ := guild.HasApplicationForCharID(s.CharID)
|
||||
if isApplicant {
|
||||
guild = nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user