1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-27 13:26:38 +02:00

Fixed bugs with weechat_config_get() in plugin API

This commit is contained in:
Sebastien Helleu
2008-04-11 22:05:54 +02:00
parent d975629686
commit 00e75b9b94
8 changed files with 53 additions and 47 deletions
+7 -4
View File
@@ -140,14 +140,17 @@ plugin_api_mkdir (char *directory, int mode)
}
/*
* plugin_api_config_get_weechat: get value of a WeeChat config option
* plugin_api_config_get: get value of an option
*/
struct t_config_option *
plugin_api_config_get_weechat (char *option_name)
plugin_api_config_get (char *option_name)
{
return config_file_search_option (weechat_config_file, NULL,
option_name);
struct t_config_option *ptr_option;
config_file_search_with_string (option_name, NULL, NULL, &ptr_option, NULL);
return ptr_option;
}
/*