reminder: accidentally a you

This commit is contained in:
Chris Sexton 2018-10-26 13:29:02 -04:00 committed by Chris Sexton
parent 2ffbc6fb93
commit 4644f1893c
1 changed files with 3 additions and 0 deletions

View File

@ -333,6 +333,9 @@ func reminderer(p *ReminderPlugin) {
}
message := fmt.Sprintf("Hey %s, %s wanted you to be reminded: %s", reminder.who, reminder.from, reminder.what)
if reminder.who == reminder.from {
message = fmt.Sprintf("Hey %s, %s wanted to be reminded: %s", reminder.who, reminder.from, reminder.what)
}
p.Bot.SendMessage(reminder.channel, message)
if err := p.deleteReminder(reminder.id); err != nil {