From 973900dd54cf364e32f43f85f4fe61167aaf760e Mon Sep 17 00:00:00 2001 From: cws Date: Thu, 8 Jun 2017 10:02:10 -0400 Subject: [PATCH] fact: fix syntax --- plugins/fact/factoid.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/fact/factoid.go b/plugins/fact/factoid.go index 054b490..0408be1 100644 --- a/plugins/fact/factoid.go +++ b/plugins/fact/factoid.go @@ -476,7 +476,7 @@ func (p *Factoid) changeFact(message msg.Message) bool { if err != nil { log.Println("Error getting facts: ", trigger, err) } - if !userexp[len(userexp)-1] == 'g' { + if userexp[len(userexp)-1] != 'g' { result = result[:1] } // make the changes