fact: fix syntax

This commit is contained in:
cws 2017-06-08 10:02:10 -04:00
parent 07f5749f1a
commit 973900dd54
1 changed files with 1 additions and 1 deletions

View File

@ -476,7 +476,7 @@ func (p *Factoid) changeFact(message msg.Message) bool {
if err != nil { if err != nil {
log.Println("Error getting facts: ", trigger, err) log.Println("Error getting facts: ", trigger, err)
} }
if !userexp[len(userexp)-1] == 'g' { if userexp[len(userexp)-1] != 'g' {
result = result[:1] result = result[:1]
} }
// make the changes // make the changes