From 22fef34db5dd0b2df568d1da86c9f53f1f54485c Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Wed, 29 Aug 2012 17:35:44 -0400 Subject: [PATCH] Quick formatting fix for searching for factoids --- plugins/factoid.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/plugins/factoid.go b/plugins/factoid.go index af1029a..6aa9391 100644 --- a/plugins/factoid.go +++ b/plugins/factoid.go @@ -101,7 +101,6 @@ func (p *FactoidPlugin) learnFact(message bot.Message, trigger, operator, fact s } p.Coll.Insert(newfact) p.LastFact = &newfact - fmt.Println(newfact.Id) return true } @@ -307,7 +306,7 @@ func (p *FactoidPlugin) changeFact(message bot.Message) bool { if i != 0 { msg = fmt.Sprintf("%s |", msg) } - msg = fmt.Sprintf("%s %s %s", msg, fact.Operator, fact.Action) + msg = fmt.Sprintf("%s <%s> %s", msg, fact.Operator, fact.Action) } if count > 4 { msg = fmt.Sprintf("%s | ...and %d others", msg, count)