diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-01-07 11:24:00 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-07 11:24:00 +0100 |
commit | d85f86726115a2f80d878254dd9773470d6dd9c1 (patch) | |
tree | c3d633169c02730c2f732edbcdbf32783bf103e2 | |
parent | e7cce90ec07d2a65d2f5aa561c30b464a88f646f (diff) | |
parent | b111f038ddb7b5079f9901dd282fd4733390b1ba (diff) | |
download | irssi-d85f86726115a2f80d878254dd9773470d6dd9c1.zip |
Merge pull request #805 from ailin-nemui/exec-empty
fix /exec -o for blank lines
-rw-r--r-- | src/fe-common/core/fe-exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-exec.c b/src/fe-common/core/fe-exec.c index 36990866..c1739d39 100644 --- a/src/fe-common/core/fe-exec.c +++ b/src/fe-common/core/fe-exec.c @@ -613,7 +613,7 @@ static void sig_exec_input(PROCESS_REC *rec, const char *text) str = g_strconcat(rec->target_nick ? "-nick " : rec->target_channel ? "-channel " : "", - rec->target, " ", text, NULL); + rec->target, " ", *text == '\0' ? " " : text, NULL); signal_emit(rec->notice ? "command notice" : "command msg", 3, str, server, item); g_free(str); |