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:
parent
db1ffae3bd
commit
3c70972610
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user