From c0e41f6940bd2bf61b66f1b95a642039d89eb25f Mon Sep 17 00:00:00 2001 From: Chris Sexton Date: Sun, 30 Dec 2012 11:26:26 -0500 Subject: [PATCH] Fixed the punctuation remover --- plugins/factoid.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/factoid.go b/plugins/factoid.go index a7f3317..61a5519 100644 --- a/plugins/factoid.go +++ b/plugins/factoid.go @@ -158,7 +158,8 @@ func (p *FactoidPlugin) trigger(message bot.Message) bool { p.sayFact(message, *fact) return true } - r := strings.NewReplacer("'", "", "\"", "", ",", "", ".", "", ":", "") + r := strings.NewReplacer("'", "", "\"", "", ",", "", ".", "", ":", "", + "?", "") if ok, fact := p.findTrigger(r.Replace(message.Body)); ok { p.sayFact(message, *fact) return true