This commit is contained in:
shoopea 2020-06-14 23:44:57 +02:00
parent c26b73c9a9
commit 61c5f6944a

View File

@ -95,6 +95,7 @@ func (p *PacketAdminJoin) Bytes() []byte {
}
func (p *PacketAdminServerWelcome) Read(b []byte) {
r := bufio.NewReader(bytes.NewReader(b))
p.ServerName, _ = r.ReadString(0)
p.OpenTTDVersion, _ = r.ReadString(0)
@ -120,11 +121,12 @@ func handlePacket(p Packet, b []byte) {
switch p.PType {
case AdminPacketServerProtocol:
case AdminPacketServerWelcome:
logInfoDebug("AdminPacketServerWelcome Raw : %v", b)
sp := PacketAdminServerWelcome{
Packet: p,
}
sp.Read(b)
logInfoDebug("AdminPacketServerWelcome : %v", sp)
logInfoDebug("AdminPacketServerWelcome Val : %v", sp)
default:
}