mirror of
https://git.keinpfusch.net/loweel/zabov
synced 2025-06-06 00:29:13 +02:00
- stats: if "SET" to zero, stat is removed
This commit is contained in:
@@ -81,7 +81,12 @@ func statsThread() {
|
||||
case "INC":
|
||||
ZabovStats[item.Payload] += item.Number
|
||||
case "SET":
|
||||
if item.Number == 0 {
|
||||
|
||||
delete(ZabovStats, item.Payload)
|
||||
} else {
|
||||
ZabovStats[item.Payload] = item.Number
|
||||
}
|
||||
case "PRI":
|
||||
statsPrint()
|
||||
}
|
||||
|
Reference in New Issue
Block a user