core: reallow names beginning with "#" for bars, proxies and filters

This commit is contained in:
Sebastien Helleu 2012-06-04 18:18:10 +02:00
parent 0732789f34
commit e79c7cf7d9
2 changed files with 1 additions and 21 deletions

View File

@ -7,6 +7,7 @@ v0.3.9-dev, 2012-06-04
Version 0.3.9 (under dev!)
--------------------------
* core: reallow names beginning with "#" for bars, proxies and filters
* core: escape special chars (`#[\`) in configuration files for name of options
(bug #36584)

View File

@ -208,13 +208,6 @@ COMMAND_CALLBACK(bar)
if (string_strcasecmp (argv[1], "add") == 0)
{
COMMAND_MIN_ARGS(8, "bar add");
if (argv[2][0] == '#')
{
gui_chat_printf (NULL,
_("%sError: name can not start with \"#\""),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
return WEECHAT_RC_OK;
}
pos_condition = strchr (argv[3], ',');
if (pos_condition)
{
@ -1590,13 +1583,6 @@ COMMAND_CALLBACK(filter)
argv[2]);
return WEECHAT_RC_OK;
}
if (argv[2][0] == '#')
{
gui_chat_printf_date_tags (NULL, 0, GUI_FILTER_TAG_NO_FILTER,
_("%sError: name can not start with \"#\""),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
return WEECHAT_RC_OK;
}
if ((strcmp (argv[4], "*") == 0) && (strcmp (argv_eol[5], "*") == 0))
{
gui_chat_printf_date_tags (NULL, 0, GUI_FILTER_TAG_NO_FILTER,
@ -3776,13 +3762,6 @@ COMMAND_CALLBACK(proxy)
if (string_strcasecmp (argv[1], "add") == 0)
{
COMMAND_MIN_ARGS(6, "proxy add");
if (argv[2][0] == '#')
{
gui_chat_printf (NULL,
_("%sError: name can not start with \"#\""),
gui_chat_prefix[GUI_CHAT_PREFIX_ERROR]);
return WEECHAT_RC_OK;
}
type = proxy_search_type (argv[3]);
if (type < 0)
{