diff options
author | Paul Fariello <paul@fariello.eu> | 2018-09-05 14:37:26 +0200 |
---|---|---|
committer | Paul Fariello <paul@fariello.eu> | 2018-09-05 14:37:26 +0200 |
commit | 3c709726107e4b20452aa794501a7c0c143c6f85 (patch) | |
tree | c9dec8a03c063a3e1d28372114eebc262645267d /src | |
parent | db1ffae3bd80f52d98fae62c297a16b999df4057 (diff) | |
download | profani-tty-3c709726107e4b20452aa794501a7c0c143c6f85.tar.gz |
Add default jid for cmd commands on WIN_CONSOLE
Diffstat (limited to 'src')
-rw-r--r-- | src/command/cmd_funcs.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/command/cmd_funcs.c b/src/command/cmd_funcs.c index d45fde81..f8c9d9e2 100644 --- a/src/command/cmd_funcs.c +++ b/src/command/cmd_funcs.c @@ -70,6 +70,7 @@ #include "ui/ui.h" #include "ui/window_list.h" #include "xmpp/xmpp.h" +#include "xmpp/connection.h" #include "xmpp/contact.h" #include "xmpp/roster_list.h" #include "xmpp/jid.h" @@ -7508,6 +7509,11 @@ cmd_command_list(ProfWin *window, const char *const command, gchar **args) jid = privatewin->fulljid; break; } + case WIN_CONSOLE: + { + jid = connection_get_domain(); + break; + } default: cons_show("Cannot send ad hoc commands."); return TRUE; @@ -7559,6 +7565,11 @@ cmd_command_exec(ProfWin *window, const char *const command, gchar **args) jid = privatewin->fulljid; break; } + case WIN_CONSOLE: + { + jid = connection_get_domain(); + break; + } default: cons_show("Cannot send ad hoc commands."); return TRUE; |