mirror of
https://github.com/weechat/weechat.git
synced 2026-07-09 03:03:12 +02:00
core: make get/set object properties case sensitive (issue #1872)
This commit is contained in:
@@ -203,37 +203,37 @@ proxy_set (struct t_proxy *proxy, const char *property, const char *value)
|
||||
if (!proxy || !property || !value)
|
||||
return 0;
|
||||
|
||||
if (string_strcasecmp (property, "name") == 0)
|
||||
if (string_strcmp (property, "name") == 0)
|
||||
{
|
||||
proxy_set_name (proxy, value);
|
||||
return 1;
|
||||
}
|
||||
else if (string_strcasecmp (property, "type") == 0)
|
||||
else if (string_strcmp (property, "type") == 0)
|
||||
{
|
||||
config_file_option_set (proxy->options[PROXY_OPTION_TYPE], value, 1);
|
||||
return 1;
|
||||
}
|
||||
else if (string_strcasecmp (property, "ipv6") == 0)
|
||||
else if (string_strcmp (property, "ipv6") == 0)
|
||||
{
|
||||
config_file_option_set (proxy->options[PROXY_OPTION_IPV6], value, 1);
|
||||
return 1;
|
||||
}
|
||||
else if (string_strcasecmp (property, "address") == 0)
|
||||
else if (string_strcmp (property, "address") == 0)
|
||||
{
|
||||
config_file_option_set (proxy->options[PROXY_OPTION_ADDRESS], value, 1);
|
||||
return 1;
|
||||
}
|
||||
else if (string_strcasecmp (property, "port") == 0)
|
||||
else if (string_strcmp (property, "port") == 0)
|
||||
{
|
||||
config_file_option_set (proxy->options[PROXY_OPTION_PORT], value, 1);
|
||||
return 1;
|
||||
}
|
||||
else if (string_strcasecmp (property, "username") == 0)
|
||||
else if (string_strcmp (property, "username") == 0)
|
||||
{
|
||||
config_file_option_set (proxy->options[PROXY_OPTION_USERNAME], value, 1);
|
||||
return 1;
|
||||
}
|
||||
else if (string_strcasecmp (property, "password") == 0)
|
||||
else if (string_strcmp (property, "password") == 0)
|
||||
{
|
||||
config_file_option_set (proxy->options[PROXY_OPTION_PASSWORD], value, 1);
|
||||
return 1;
|
||||
|
||||
Reference in New Issue
Block a user