From 130e471c8ead25a96454fa0475b5035050eef1c9 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Wed, 23 Jan 2013 19:42:25 -0500 Subject: [PATCH] Fixing insertion of counters for negative counts --- plugins/counter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/counter.go b/plugins/counter.go index 0a87bd0..8582424 100644 --- a/plugins/counter.go +++ b/plugins/counter.go @@ -140,7 +140,7 @@ func (p *CounterPlugin) update(subject, itemName string, delta int) Item { item = Item{ Nick: subject, Item: itemName, - Count: 1, + Count: delta, } p.Coll.Insert(item) } else {