summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog2
-rw-r--r--src/core/wee-command.c12
2 files changed, 12 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index fd3802026..217ba08b3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
diff --git a/src/core/wee-command.c b/src/core/wee-command.c
index fc3182cd4..6d3f17e8f 100644
--- a/src/core/wee-command.c
+++ b/src/core/wee-command.c
@@ -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"