Fixed the replacer to ignore "!" on secondary factoid searches.

This commit is contained in:
Chris Sexton 2013-01-07 16:08:34 -05:00
parent c0e41f6940
commit 172567004a
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ func (p *FactoidPlugin) trigger(message bot.Message) bool {
return true
}
r := strings.NewReplacer("'", "", "\"", "", ",", "", ".", "", ":", "",
"?", "")
"?", "", "!", "")
if ok, fact := p.findTrigger(r.Replace(message.Body)); ok {
p.sayFact(message, *fact)
return true