Added XML Console window
This commit is contained in:
@@ -789,6 +789,14 @@ static struct cmd_t command_defs[] =
|
||||
"The default is 'all' for all windows.",
|
||||
NULL } } },
|
||||
|
||||
{ "/xmlconsole",
|
||||
cmd_xmlconsole, parse_args, 0, 0, NULL,
|
||||
{ "/xmlconsole", "Open the XML console",
|
||||
{ "/xmlconsole",
|
||||
"-----------",
|
||||
"Open the XML console to view incoming and outgoing XMPP traffic.",
|
||||
NULL } } },
|
||||
|
||||
{ "/away",
|
||||
cmd_away, parse_args_with_freetext, 0, 1, NULL,
|
||||
{ "/away [msg]", "Set status to away.",
|
||||
@@ -1937,4 +1945,4 @@ _account_autocomplete(char *input, int *size)
|
||||
|
||||
found = autocomplete_param_with_ac(input, size, "/account", account_ac);
|
||||
return found;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2443,6 +2443,18 @@ cmd_vercheck(gchar **args, struct cmd_help_t help)
|
||||
}
|
||||
}
|
||||
|
||||
gboolean
|
||||
cmd_xmlconsole(gchar **args, struct cmd_help_t help)
|
||||
{
|
||||
if (!ui_xmlconsole_exists()) {
|
||||
ui_create_xmlconsole_win();
|
||||
} else {
|
||||
ui_open_xmlconsole_win();
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
gboolean
|
||||
cmd_flash(gchar **args, struct cmd_help_t help)
|
||||
{
|
||||
|
||||
@@ -110,5 +110,6 @@ gboolean cmd_win(gchar **args, struct cmd_help_t help);
|
||||
gboolean cmd_wins(gchar **args, struct cmd_help_t help);
|
||||
gboolean cmd_xa(gchar **args, struct cmd_help_t help);
|
||||
gboolean cmd_alias(gchar **args, struct cmd_help_t help);
|
||||
gboolean cmd_xmlconsole(gchar **args, struct cmd_help_t help);
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user