summaryrefslogtreecommitdiff
path: root/src/core
diff options
context:
space:
mode:
Diffstat (limited to 'src/core')
-rw-r--r--src/core/wee-command.c102
1 files changed, 51 insertions, 51 deletions
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index c9052676b..e7e3ddf64 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -1859,19 +1859,6 @@ COMMAND_CALLBACK(debug)
return WEECHAT_RC_OK;
}
- if (string_strcasecmp (argv[1], "dump") == 0)
- {
- if (argc > 2)
- log_printf ("Dump request for plugin: \"%s\"", argv_eol[2]);
- else
- log_printf ("Dump request for WeeChat core and plugins");
- weechat_log_use_time = 0;
- (void) hook_signal_send ("debug_dump", WEECHAT_HOOK_SIGNAL_STRING,
- (argc > 2) ? argv_eol[2] : NULL);
- weechat_log_use_time = 1;
- return WEECHAT_RC_OK;
- }
-
if (string_strcasecmp (argv[1], "buffer") == 0)
{
gui_buffer_dump_hexa (buffer);
@@ -1881,6 +1868,18 @@ COMMAND_CALLBACK(debug)
return WEECHAT_RC_OK;
}
+ if (string_strcasecmp (argv[1], "certs") == 0)
+ {
+ gui_chat_printf (NULL,
+ NG_("%d certificate loaded (system: %d, user: %d)",
+ "%d certificates loaded (system: %d, user: %d)",
+ network_num_certs),
+ network_num_certs,
+ network_num_certs_system,
+ network_num_certs_user);
+ return WEECHAT_RC_OK;
+ }
+
if (string_strcasecmp (argv[1], "color") == 0)
{
gui_color_dump ();
@@ -1900,6 +1899,25 @@ COMMAND_CALLBACK(debug)
return WEECHAT_RC_OK;
}
+ if (string_strcasecmp (argv[1], "dirs") == 0)
+ {
+ debug_directories ();
+ return WEECHAT_RC_OK;
+ }
+
+ if (string_strcasecmp (argv[1], "dump") == 0)
+ {
+ if (argc > 2)
+ log_printf ("Dump request for plugin: \"%s\"", argv_eol[2]);
+ else
+ log_printf ("Dump request for WeeChat core and plugins");
+ weechat_log_use_time = 0;
+ (void) hook_signal_send ("debug_dump", WEECHAT_HOOK_SIGNAL_STRING,
+ (argc > 2) ? argv_eol[2] : NULL);
+ weechat_log_use_time = 1;
+ return WEECHAT_RC_OK;
+ }
+
if (string_strcasecmp (argv[1], "hdata") == 0)
{
if ((argc > 2) && (string_strcasecmp (argv[2], "free") == 0))
@@ -1932,18 +1950,6 @@ COMMAND_CALLBACK(debug)
return WEECHAT_RC_OK;
}
- if (string_strcasecmp (argv[1], "certs") == 0)
- {
- gui_chat_printf (NULL,
- NG_("%d certificate loaded (system: %d, user: %d)",
- "%d certificates loaded (system: %d, user: %d)",
- network_num_certs),
- network_num_certs,
- network_num_certs_system,
- network_num_certs_user);
- return WEECHAT_RC_OK;
- }
-
if (string_strcasecmp (argv[1], "memory") == 0)
{
debug_memory ();
@@ -1963,32 +1969,6 @@ COMMAND_CALLBACK(debug)
return WEECHAT_RC_OK;
}
- if (string_strcasecmp (argv[1], "tags") == 0)
- {
- gui_chat_display_tags ^= 1;
- gui_window_ask_refresh (2);
- return WEECHAT_RC_OK;
- }
-
- if (string_strcasecmp (argv[1], "term") == 0)
- {
- gui_window_term_display_infos ();
- weechat_term_check ();
- return WEECHAT_RC_OK;
- }
-
- if (string_strcasecmp (argv[1], "windows") == 0)
- {
- debug_windows_tree ();
- return WEECHAT_RC_OK;
- }
-
- if (string_strcasecmp (argv[1], "dirs") == 0)
- {
- debug_directories ();
- return WEECHAT_RC_OK;
- }
-
if (string_strcasecmp (argv[1], "set") == 0)
{
COMMAND_MIN_ARGS(4, "set");
@@ -2021,6 +2001,20 @@ COMMAND_CALLBACK(debug)
return WEECHAT_RC_OK;
}
+ if (string_strcasecmp (argv[1], "tags") == 0)
+ {
+ gui_chat_display_tags ^= 1;
+ gui_window_ask_refresh (2);
+ return WEECHAT_RC_OK;
+ }
+
+ if (string_strcasecmp (argv[1], "term") == 0)
+ {
+ gui_window_term_display_infos ();
+ weechat_term_check ();
+ return WEECHAT_RC_OK;
+ }
+
if (string_strcasecmp (argv[1], "time") == 0)
{
COMMAND_MIN_ARGS(3, "time");
@@ -2031,6 +2025,12 @@ COMMAND_CALLBACK(debug)
return WEECHAT_RC_OK;
}
+ if (string_strcasecmp (argv[1], "windows") == 0)
+ {
+ debug_windows_tree ();
+ return WEECHAT_RC_OK;
+ }
+
COMMAND_ERROR;
}