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()

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT.
package main
var githash = "bcc20d3"
var buildstamp = "2021-11-10_06:41:59"
var commits = "184"
var version = "bcc20d3-b184 - 2021-11-10_06:41:59"
var githash = "b43caf0"
var buildstamp = "2021-11-10_06:49:48"
var commits = "185"
var version = "b43caf0-b185 - 2021-11-10_06:49:48"