diff options
-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; |