1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-23 03:16:37 +02:00

Fixed bugs with get_plugin_config and set_plugin_config functions (python only)

This commit is contained in:
Sebastien Helleu
2005-11-08 09:16:32 +00:00
parent c8361419b8
commit f5ecafd6a8
2 changed files with 12 additions and 4 deletions
+6 -2
View File
@@ -655,7 +655,9 @@ weechat_python_get_plugin_config (PyObject *self, PyObject *args)
if (option)
{
return_value = python_plugin->get_config (python_plugin, option);
return_value = weechat_script_get_plugin_config (python_plugin,
python_current_script,
option);
if (return_value)
{
@@ -701,7 +703,9 @@ weechat_python_set_plugin_config (PyObject *self, PyObject *args)
if (option && value)
{
if (python_plugin->set_config (python_plugin, option, value))
if (weechat_script_set_plugin_config (python_plugin,
python_current_script,
option, value))
return Py_BuildValue ("i", 1);
}