test
This commit is contained in:
parent
e185eff578
commit
6079431dda
8
ttd.go
8
ttd.go
@ -22,6 +22,7 @@ type ClientTTD struct {
|
||||
|
||||
type CompanyTTD struct {
|
||||
CompanyID uint8
|
||||
CompanyExtlID uint
|
||||
Name string
|
||||
Protected bool
|
||||
ClientID uint32
|
||||
@ -319,6 +320,7 @@ func (s *ServerTTD) Poll(stop chan struct{}) {
|
||||
logInfoDebug("Server.Poll() : PacketServerCompanyNew :\n- CompanyID: %d", sp.CompanyID)
|
||||
c := &CompanyTTD{
|
||||
CompanyID: sp.CompanyID,
|
||||
CompanyExtlID: 256,
|
||||
FirstSeen: time.Now(),
|
||||
ClientID: 0,
|
||||
}
|
||||
@ -331,6 +333,7 @@ func (s *ServerTTD) Poll(stop chan struct{}) {
|
||||
//logInfoDebug("Server.Poll() : PacketServerCompanyInfo :\n- CompanyID: %d\n- Name: %s\n- President: %s\n- Protected: %t\n- Inauguration: %d\n- AI: %t", sp.CompanyID, sp.Name, sp.President, sp.Protected, sp.Inauguration, sp.AI)
|
||||
c := &CompanyTTD{
|
||||
CompanyID: sp.CompanyID,
|
||||
CompanyExtlID: 256,
|
||||
FirstSeen: time.Now(),
|
||||
ClientID: 0,
|
||||
}
|
||||
@ -350,6 +353,7 @@ func (s *ServerTTD) Poll(stop chan struct{}) {
|
||||
logInfoDebug("Server.Poll() : PacketServerCompanyUpdate :\n- CompanyID: %d\n- Name: %s\n- President: %s\n- Protected: %t", sp.CompanyID, sp.Name, sp.President, sp.Protected)
|
||||
c := &CompanyTTD{
|
||||
CompanyID: sp.CompanyID,
|
||||
CompanyExtlID: 256,
|
||||
FirstSeen: time.Now(),
|
||||
ClientID: 0,
|
||||
}
|
||||
@ -427,12 +431,12 @@ func (s *ServerTTD) Poll(stop chan struct{}) {
|
||||
}
|
||||
break
|
||||
}
|
||||
|
||||
/*
|
||||
command, err := regexp.MatchString("\\[admin\\] Rcon command from 'gottdad' \\(.*\\): .*", sp.Text)
|
||||
if command && sp.Origin == "net" {
|
||||
break
|
||||
}
|
||||
|
||||
*/
|
||||
logInfoDebug("Server.Poll() : AdminPacketServerConsole :\n- Origin: %q\n- Text: %s", sp.Origin, sp.Text)
|
||||
|
||||
case AdminPacketServerRCon:
|
||||
|
Loading…
x
Reference in New Issue
Block a user