summaryrefslogtreecommitdiff
path: root/src/plugins/alias
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-06-04 18:20:47 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-06-04 18:20:47 +0200
commita306fcfd33d9344a4ff61246dd8537186d28c4b1 (patch)
tree7d8f3f3899fb67c2946a1161c0019cbca7887524 /src/plugins/alias
parent89b676f653ffd41b8d803c1d0e731507756773a7 (diff)
downloadweechat-a306fcfd33d9344a4ff61246dd8537186d28c4b1.zip
alias: reallow names beginning with "#" for aliases
Diffstat (limited to 'src/plugins/alias')
-rw-r--r--src/plugins/alias/alias.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/plugins/alias/alias.c b/src/plugins/alias/alias.c
index 514c98491..77d5aa49f 100644
--- a/src/plugins/alias/alias.c
+++ b/src/plugins/alias/alias.c
@@ -566,7 +566,7 @@ alias_new (const char *name, const char *command, const char *completion)
{
struct t_alias *new_alias, *ptr_alias, *pos_alias;
- if (!name || !name[0] || (name[0] == '#') || !command || !command[0])
+ if (!name || !name[0] || !command || !command[0])
return NULL;
while (weechat_string_is_command_char (name))
@@ -979,8 +979,6 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
"completion of an existing command\n"
" alias: name of alias (can start or end "
"with \"*\" for alias listing)\n"
- " note: the name can not start with "
- "\"#\"\n"
" command: command name with arguments (many "
"commands can be separated by semicolons)\n\n"
"Without argument, this command lists all "