summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/python
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2008-11-07 18:27:16 +0100
committerSebastien Helleu <flashcode@flashtux.org>2008-11-07 18:27:16 +0100
commit67d8312f461b74b747088b6661a21426ab2a01e6 (patch)
tree2f797a4e048205a1eb03b9ddbf82166e26046940 /src/plugins/scripts/python
parentbc5bb29970ee029ee646b8805b83b3a9d71a2ef8 (diff)
downloadweechat-67d8312f461b74b747088b6661a21426ab2a01e6.zip
Update developer guide (add 50% of new C API functions)
Diffstat (limited to 'src/plugins/scripts/python')
-rw-r--r--src/plugins/scripts/python/weechat-python-api.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/scripts/python/weechat-python-api.c b/src/plugins/scripts/python/weechat-python-api.c
index 4b60ea0d7..ee989cf6e 100644
--- a/src/plugins/scripts/python/weechat-python-api.c
+++ b/src/plugins/scripts/python/weechat-python-api.c
@@ -1672,8 +1672,7 @@ weechat_python_api_config_string (PyObject *self, PyObject *args)
static PyObject *
weechat_python_api_config_color (PyObject *self, PyObject *args)
{
- char *option;
- int value;
+ char *option, *result;
/* make C compiler happy */
(void) self;
@@ -1692,9 +1691,9 @@ weechat_python_api_config_color (PyObject *self, PyObject *args)
PYTHON_RETURN_INT(0);
}
- value = weechat_config_color (script_str2ptr (option));
+ result = weechat_config_color (script_str2ptr (option));
- PYTHON_RETURN_INT(value);
+ PYTHON_RETURN_STRING(result);
}
/*