1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-29 14:26:39 +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
+2
View File
@@ -7,6 +7,8 @@ v0.4.0-dev, 2012-12-02
Version 0.4.0 (under dev!)
--------------------------
* core: use high priority (50000) for commands /command and /input so that an
alias will not take precedence over these commands (bug #36353)
* core: execute command with higher priority when many commands with same name
are found with different priorities
* core: add color support in options
+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"