From 07f5749f1aa63bbe11709a7b516a7c0899472c1a Mon Sep 17 00:00:00 2001 From: cws Date: Wed, 7 Jun 2017 14:56:14 -0400 Subject: [PATCH] fact: add back global check --- plugins/fact/factoid.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/plugins/fact/factoid.go b/plugins/fact/factoid.go index b7b4331..054b490 100644 --- a/plugins/fact/factoid.go +++ b/plugins/fact/factoid.go @@ -476,6 +476,9 @@ func (p *Factoid) changeFact(message msg.Message) bool { if err != nil { log.Println("Error getting facts: ", trigger, err) } + if !userexp[len(userexp)-1] == 'g' { + result = result[:1] + } // make the changes msg := fmt.Sprintf("Changing %d facts.", len(result)) p.Bot.SendMessage(message.Channel, msg)