Allow to use cmd without being in a window

This commit is contained in:
Paul Fariello
2018-07-02 08:10:01 +03:20
parent e555e41eaf
commit ec5fc3612f
3 changed files with 18 additions and 9 deletions

View File

@@ -1118,9 +1118,11 @@ _command_list_result_handler(xmpp_stanza_t *const stanza, void *const userdata)
}
ProfWin *win = wins_get_by_string(from);
if (win) {
win_handle_command_list(win, cmds);
if (win == NULL) {
win = wins_get_console();
}
win_handle_command_list(win, cmds);
g_slist_free(cmds);
free(from);