From f5ecafd6a8e6e529f484b15bf35c4900066a3ab9 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 8 Nov 2005 09:16:32 +0000 Subject: Fixed bugs with get_plugin_config and set_plugin_config functions (python only) --- src/plugins/scripts/python/weechat-python.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/plugins/scripts/python/weechat-python.c') diff --git a/src/plugins/scripts/python/weechat-python.c b/src/plugins/scripts/python/weechat-python.c index cb903c2e6..a28f85b9a 100644 --- a/src/plugins/scripts/python/weechat-python.c +++ b/src/plugins/scripts/python/weechat-python.c @@ -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); } -- cgit v1.2.3