remove even more spam

This commit is contained in:
shoopea
2021-12-11 10:53:45 +08:00
parent eec4d75635
commit bd6a5422cb
2 changed files with 9 additions and 8 deletions

9
ttd.go
View File

@@ -512,12 +512,13 @@ func (s *ServerTTD) Poll(stop chan struct{}) {
}
break
}
/*
command, err := regexp.MatchString("\\[admin\\] Rcon command from 'gottdad' \\(.*\\): .*", sp.Text)
if command && sp.Origin == "net" {
r := regexp.MustCompile("^\\[admin\\] Rcon command from 'gottdad' \\(.*\\): (?P<Command>.*)$")
if r.MatchString(sp.Text) {
command := r.ReplaceAllString(sp.Text, "${Command}")
if sp.Origin == "net" && (command == "clients" || command == "companies") {
break
}
*/
}
logInfoDebug("Server.Poll() : AdminPacketServerConsole :\n- Origin: %q\n- Text: %s", sp.Origin, sp.Text)
case AdminPacketServerRCon: