Don't let "REM ... MSG NOTE endreminder" mess with daemon protocol.

Pad with a leading space. :)
This commit is contained in:
Dianne Skoll
2023-12-06 13:28:17 -05:00
parent 27d8a62ab6
commit ec9b30c616

View File

@@ -1146,7 +1146,12 @@ int TriggerReminder(ParsePtr p, Trigger *t, TimeTrig *tim, int dse, int is_queue
if (msg_command) {
DoMsgCommand(msg_command, DBufValue(&buf));
} else {
printf("%s", DBufValue(&buf));
/* Add a space before "NOTE endreminder" */
if (Daemon < 0 && !strncmp(DBufValue(&buf), "NOTE endreminder", 16)) {
printf(" %s", DBufValue(&buf));
} else {
printf("%s", DBufValue(&buf));
}
}
break;