remove even more spam
This commit is contained in:
9
ttd.go
9
ttd.go
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user