summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorailin-nemui <ailin-nemui@users.noreply.github.com>2018-01-07 11:24:00 +0100
committerGitHub <noreply@github.com>2018-01-07 11:24:00 +0100
commitd85f86726115a2f80d878254dd9773470d6dd9c1 (patch)
treec3d633169c02730c2f732edbcdbf32783bf103e2 /src/fe-common
parente7cce90ec07d2a65d2f5aa561c30b464a88f646f (diff)
parentb111f038ddb7b5079f9901dd282fd4733390b1ba (diff)
downloadirssi-d85f86726115a2f80d878254dd9773470d6dd9c1.zip
Merge pull request #805 from ailin-nemui/exec-empty
fix /exec -o for blank lines
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-exec.c2
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);