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:

View File

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