(cmd string, rest string)
| 8 | ) |
| 9 | |
| 10 | func TrackBadCommand(cmd string, rest string) { |
| 11 | |
| 12 | lock.Lock() |
| 13 | defer lock.Unlock() |
| 14 | |
| 15 | if _, ok := badCommands[cmd]; !ok { |
| 16 | badCommands[cmd] = map[string]int{} |
| 17 | } |
| 18 | |
| 19 | badCommands[cmd][rest] = badCommands[cmd][rest] + 1 |
| 20 | } |
| 21 | |
| 22 | func GetBadCommands() map[string]int { |
| 23 |