update rights on login

This commit is contained in:
wish
2022-07-26 12:27:56 +10:00
parent 1fda1e649c
commit 4ea0409319
2 changed files with 3 additions and 3 deletions

View File

@@ -181,6 +181,8 @@ func handleMsgSysLogin(s *Session, p mhfpacket.MHFPacket) {
}
doAckSimpleSucceed(s, pkt.AckHandle, bf.Data())
updateRights(s)
}
func handleMsgSysLogout(s *Session, p mhfpacket.MHFPacket) {

View File

@@ -34,7 +34,7 @@ func handleMsgSysGetFile(s *Session, p mhfpacket.MHFPacket) {
// Get quest file.
data, err := ioutil.ReadFile(filepath.Join(s.server.erupeConfig.BinPath, fmt.Sprintf("quests/%s.bin", pkt.Filename)))
if err != nil {
panic(err)
s.logger.Fatal(fmt.Sprintf("Failed to open quest file: quests/%s.bin", pkt.Filename))
}
doAckBufSucceed(s, pkt.AckHandle, data)
}
@@ -68,8 +68,6 @@ func handleMsgMhfEnumerateQuest(s *Session, p mhfpacket.MHFPacket) {
} else {
doAckBufSucceed(s, pkt.AckHandle, data)
}
// Update the client's rights as well:
updateRights(s)
}
func handleMsgMhfEnterTournamentQuest(s *Session, p mhfpacket.MHFPacket) {}