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:
parent
e405330e04
commit
b111f038dd
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user