Merge pull request #805 from ailin-nemui/exec-empty

fix /exec -o for blank lines
This commit is contained in:
ailin-nemui 2018-01-07 11:24:00 +01:00 committed by GitHub
commit d85f867261
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -613,7 +613,7 @@ static void sig_exec_input(PROCESS_REC *rec, const char *text)
str = g_strconcat(rec->target_nick ? "-nick " : str = g_strconcat(rec->target_nick ? "-nick " :
rec->target_channel ? "-channel " : "", rec->target_channel ? "-channel " : "",
rec->target, " ", text, NULL); rec->target, " ", *text == '\0' ? " " : text, NULL);
signal_emit(rec->notice ? "command notice" : "command msg", signal_emit(rec->notice ? "command notice" : "command msg",
3, str, server, item); 3, str, server, item);
g_free(str); g_free(str);