mirror of https://github.com/velour/catbase.git
Fixing insertion of counters for negative counts
This commit is contained in:
parent
dbb2e97ba3
commit
130e471c8e
|
@ -140,7 +140,7 @@ func (p *CounterPlugin) update(subject, itemName string, delta int) Item {
|
||||||
item = Item{
|
item = Item{
|
||||||
Nick: subject,
|
Nick: subject,
|
||||||
Item: itemName,
|
Item: itemName,
|
||||||
Count: 1,
|
Count: delta,
|
||||||
}
|
}
|
||||||
p.Coll.Insert(item)
|
p.Coll.Insert(item)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue