1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-07 18:23:13 +02:00

core: use high priority (50000) for commands /command and /input so that an alias will not take precedence over these commands (bug #36353)

This commit is contained in:
Sebastien Helleu
2012-12-02 13:15:31 +01:00
parent 1fa23e6d9c
commit f411a59a7d
2 changed files with 12 additions and 2 deletions
+10 -2
View File
@@ -5778,7 +5778,11 @@ command_init ()
" || unalias %(palette_colors)"
" || reset",
&command_color, NULL);
hook_command (NULL, "command",
/*
* give high priority (50000) so that an alias will not take precedence
* over this command
*/
hook_command (NULL, "50000|command",
N_("launch explicit WeeChat or plugin command"),
N_("<plugin> <command>"),
N_(" plugin: plugin name ('weechat' for WeeChat internal "
@@ -6007,7 +6011,11 @@ command_init ()
"value: number of history entries to show"),
"clear",
&command_history, NULL);
hook_command (NULL, "input",
/*
* give high priority (50000) so that an alias will not take precedence
* over this command
*/
hook_command (NULL, "50000|input",
N_("functions for command line"),
N_("<action> [<arguments>]"),
N_("list of actions:\n"