From 172567004a36469a06b922f48b535f2d26081737 Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Mon, 7 Jan 2013 16:08:34 -0500 Subject: [PATCH] Fixed the replacer to ignore "!" on secondary factoid searches. --- plugins/factoid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/factoid.go b/plugins/factoid.go index 61a5519..95b1412 100644 --- a/plugins/factoid.go +++ b/plugins/factoid.go @@ -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