summaryrefslogtreecommitdiff
path: root/src/core/wee-config.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2009-06-28 19:49:32 +0200
committerSebastien Helleu <flashcode@flashtux.org>2009-06-28 19:49:32 +0200
commit2f7a5a4147d546753bef505cee4cd29aa3dcaf07 (patch)
treefff8de5328e269776da426566c5e4065efdaa18b /src/core/wee-config.c
parent4a89b4ae5900d02985e1d8641bc27f1690b9e94b (diff)
downloadweechat-2f7a5a4147d546753bef505cee4cd29aa3dcaf07.zip
Rename function string_explode to string_split
Diffstat (limited to 'src/core/wee-config.c')
-rw-r--r--src/core/wee-config.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/core/wee-config.c b/src/core/wee-config.c
index 0a1be7c8c..02746cdbf 100644
--- a/src/core/wee-config.c
+++ b/src/core/wee-config.c
@@ -760,7 +760,7 @@ config_weechat_layout_read_cb (void *data, struct t_config_file *config_file,
{
if (string_strcasecmp (option_name, "buffer") == 0)
{
- argv = string_explode (value, ";", 0, 0, &argc);
+ argv = string_split (value, ";", 0, 0, &argc);
if (argv)
{
if (argc >= 3)
@@ -774,12 +774,12 @@ config_weechat_layout_read_cb (void *data, struct t_config_file *config_file,
argv[0], argv[1], number1);
}
}
- string_free_exploded (argv);
+ string_free_split (argv);
}
}
else if (string_strcasecmp (option_name, "window") == 0)
{
- argv = string_explode (value, ";", 0, 0, &argc);
+ argv = string_split (value, ";", 0, 0, &argc);
if (argv)
{
if (argc >= 6)
@@ -808,7 +808,7 @@ config_weechat_layout_read_cb (void *data, struct t_config_file *config_file,
argv[5] : NULL);
}
}
- string_free_exploded (argv);
+ string_free_split (argv);
}
}
}
@@ -1035,17 +1035,17 @@ config_weechat_filter_read_cb (void *data,
if (option_name && value && value[0])
{
- argv = string_explode (value, ";", 0, 0, &argc);
- argv_eol = string_explode (value, ";", 1, 0, NULL);
+ argv = string_split (value, ";", 0, 0, &argc);
+ argv_eol = string_split (value, ";", 1, 0, NULL);
if (argv && argv_eol && (argc >= 4))
{
gui_filter_new ((string_strcasecmp (argv[0], "on") == 0) ? 1 : 0,
option_name, argv[1], argv[2], argv_eol[3]);
}
if (argv)
- string_free_exploded (argv);
+ string_free_split (argv);
if (argv_eol)
- string_free_exploded (argv_eol);
+ string_free_split (argv_eol);
}
return WEECHAT_CONFIG_OPTION_SET_OK_SAME_VALUE;