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 break
} }
/* r := regexp.MustCompile("^\\[admin\\] Rcon command from 'gottdad' \\(.*\\): (?P<Command>.*)$")
command, err := regexp.MatchString("\\[admin\\] Rcon command from 'gottdad' \\(.*\\): .*", sp.Text) if r.MatchString(sp.Text) {
if command && sp.Origin == "net" { command := r.ReplaceAllString(sp.Text, "${Command}")
if sp.Origin == "net" && (command == "clients" || command == "companies") {
break break
} }
*/ }
logInfoDebug("Server.Poll() : AdminPacketServerConsole :\n- Origin: %q\n- Text: %s", sp.Origin, sp.Text) logInfoDebug("Server.Poll() : AdminPacketServerConsole :\n- Origin: %q\n- Text: %s", sp.Origin, sp.Text)
case AdminPacketServerRCon: case AdminPacketServerRCon:

View File

@ -1,6 +1,6 @@
// Code generated by version.sh (@generated) DO NOT EDIT. // Code generated by version.sh (@generated) DO NOT EDIT.
package main package main
var githash = "0bfa446" var githash = "eec4d75"
var buildstamp = "2021-12-11_02:44:00" var buildstamp = "2021-12-11_02:53:36"
var commits = "254" var commits = "255"
var version = "0bfa446-b254 - 2021-12-11_02:44:00" var version = "eec4d75-b255 - 2021-12-11_02:53:36"