mirror of https://github.com/velour/catbase.git
fact: fix syntax
This commit is contained in:
parent
07f5749f1a
commit
973900dd54
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue