diff options
author | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-01-05 23:15:24 +0100 |
---|---|---|
committer | ailin-nemui <ailin-nemui@users.noreply.github.com> | 2018-01-05 23:19:06 +0100 |
commit | b111f038ddb7b5079f9901dd282fd4733390b1ba (patch) | |
tree | ed1d93f436e8c71e5ed076f8bbed71976ae85fb5 /src | |
parent | e405330e04dc344797f00c12cf8fd7f63b17e0e4 (diff) | |
download | irssi-b111f038ddb7b5079f9901dd282fd4733390b1ba.zip |
fix /exec -o for blank lines
since it is not allowed to send nothing, instead of spamming the status window
with error, send " " instead
Fixes FS#902
Diffstat (limited to 'src')
-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); |