diff --git a/cmd-confirm-before.c b/cmd-confirm-before.c index fb42d431..af630b1e 100644 --- a/cmd-confirm-before.c +++ b/cmd-confirm-before.c @@ -130,7 +130,7 @@ cmd_confirm_before_callback(struct client *c, void *data, const char *s, if (s == NULL) goto out; - if (s[0] != cdata->confirm_key && (s[0] != '\0' || !cdata->default_yes)) + if (s[0] != cdata->confirm_key && (s[0] != '\r' || !cdata->default_yes)) goto out; retcode = 0;