diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-07 18:27:16 +0100 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-11-07 18:27:16 +0100 |
commit | 67d8312f461b74b747088b6661a21426ab2a01e6 (patch) | |
tree | 2f797a4e048205a1eb03b9ddbf82166e26046940 /src/plugins/scripts/python | |
parent | bc5bb29970ee029ee646b8805b83b3a9d71a2ef8 (diff) | |
download | weechat-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.c | 7 |
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); } /* |