1
0
mirror of https://github.com/irssi/irssi.git synced 2025-02-02 15:08:01 -05:00

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
This commit is contained in:
ailin-nemui 2018-01-05 23:15:24 +01:00
parent e405330e04
commit b111f038dd

View File

@ -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);