auto fill company passwd with blabla if unprotected

This commit is contained in:
shoopea
2021-11-10 14:50:14 +08:00
parent b43caf02a9
commit f84f36143e
2 changed files with 6 additions and 4 deletions

2
ttd.go
View File

@@ -557,6 +557,8 @@ func (s *ServerTTD) UpdateCompanies() {
err = s.Send(px2.Bytes())
logErrorDebug(err, "Server.UpdateClients() : Send(PacketAdminPoll) : AdminPacketAdminRCon")
break
} else if !co.Protected {
s.SetPasswd(co.CompanyExtlID, "blabla")
}
}
s.Status.UpdateCompanies = time.Now()