mirror of
https://github.com/Mezeporta/Erupe.git
synced 2025-12-14 07:55:33 +01:00
simplify code
This commit is contained in:
@@ -6,6 +6,7 @@ import (
|
|||||||
"erupe-ce/common/mhfcourse"
|
"erupe-ce/common/mhfcourse"
|
||||||
"erupe-ce/common/token"
|
"erupe-ce/common/token"
|
||||||
"erupe-ce/config"
|
"erupe-ce/config"
|
||||||
|
"erupe-ce/network"
|
||||||
"erupe-ce/network/binpacket"
|
"erupe-ce/network/binpacket"
|
||||||
"erupe-ce/network/mhfpacket"
|
"erupe-ce/network/mhfpacket"
|
||||||
"fmt"
|
"fmt"
|
||||||
@@ -125,7 +126,7 @@ func parseChatCommand(s *Session, command string) {
|
|||||||
deleteNotif.WriteUint16(uint16(temp.Opcode()))
|
deleteNotif.WriteUint16(uint16(temp.Opcode()))
|
||||||
temp.Build(deleteNotif, s.clientContext)
|
temp.Build(deleteNotif, s.clientContext)
|
||||||
}
|
}
|
||||||
deleteNotif.WriteUint16(0x0010)
|
deleteNotif.WriteUint16(uint16(network.MSG_SYS_END))
|
||||||
s.QueueSend(deleteNotif.Data())
|
s.QueueSend(deleteNotif.Data())
|
||||||
time.Sleep(500 * time.Millisecond)
|
time.Sleep(500 * time.Millisecond)
|
||||||
reloadNotif := byteframe.NewByteFrame()
|
reloadNotif := byteframe.NewByteFrame()
|
||||||
@@ -160,7 +161,7 @@ func parseChatCommand(s *Session, command string) {
|
|||||||
reloadNotif.WriteUint16(uint16(temp.Opcode()))
|
reloadNotif.WriteUint16(uint16(temp.Opcode()))
|
||||||
temp.Build(reloadNotif, s.clientContext)
|
temp.Build(reloadNotif, s.clientContext)
|
||||||
}
|
}
|
||||||
reloadNotif.WriteUint16(0x0010)
|
reloadNotif.WriteUint16(uint16(network.MSG_SYS_END))
|
||||||
s.QueueSend(reloadNotif.Data())
|
s.QueueSend(reloadNotif.Data())
|
||||||
} else {
|
} else {
|
||||||
sendDisabledCommandMessage(s, commands["Reload"])
|
sendDisabledCommandMessage(s, commands["Reload"])
|
||||||
|
|||||||
Reference in New Issue
Block a user