Quick formatting fix for searching for factoids

This commit is contained in:
Chris Sexton 2012-08-29 17:35:44 -04:00
parent 63785e7102
commit 22fef34db5
1 changed files with 1 additions and 2 deletions

View File

@ -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)