fact: add back global check

This commit is contained in:
cws 2017-06-07 14:56:14 -04:00
parent b4c0f36260
commit 07f5749f1a
1 changed files with 3 additions and 0 deletions

View File

@ -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)