1
1
mirror of https://github.com/profanity-im/profanity.git synced 2025-01-03 14:57:42 -05:00

Add default jid for cmd commands on WIN_CONSOLE

This commit is contained in:
Paul Fariello 2018-09-05 14:37:26 +02:00
parent db1ffae3bd
commit 3c70972610

View File

@ -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;