auto fill company passwd with blabla if unprotected
This commit is contained in:
2
ttd.go
2
ttd.go
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user