$ git clone https://ion.nu/git/relaybot
commit 755f14e20c656195ed9472c7b58044e950efdd3c
Author: Alicia <...>
Date: Wed Jun 6 15:25:44 2018 +0200
Fixed a bug in the 'reminder' module.
diff --git a/modules/reminder.sh b/modules/reminder.sh
index a60c150..8fb1a5f 100755
--- a/modules/reminder.sh
+++ b/modules/reminder.sh
@@ -84,7 +84,7 @@ reminder()
return 0
fi
for x in `grep -rl "^For: ${from}$" "${DATADIR}/reminders" 2> /dev/null`; do
- desttime="`sed -n -e 's/^Time: //p' "$remindmsg"`"
+ desttime="`sed -n -e 's/^Time: //p' "$x"`"
if [ "$desttime" -gt "`date +%s`" ]; then continue; fi
msg="`sed -n -e 's/^Message: //p' "$x"`"
say "${from}: remember to ${msg}"