summaryrefslogtreecommitdiff
path: root/src/plugins/python/weechat-python.c
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-11-18 14:32:13 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-11-18 14:32:13 +0100
commit717eaae4962c9d65ed205e099dc850818fb7f8e4 (patch)
tree1ee1f6af8066b898151439a7c63c841b9601c342 /src/plugins/python/weechat-python.c
parentfba983958728c11a05fe125ff5d337c663076a24 (diff)
downloadweechat-717eaae4962c9d65ed205e099dc850818fb7f8e4.zip
scripts: use #ifdef to check if versions are defined in signal "debug_libs"
Diffstat (limited to 'src/plugins/python/weechat-python.c')
-rw-r--r--src/plugins/python/weechat-python.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/python/weechat-python.c b/src/plugins/python/weechat-python.c
index 7bbb9c9e4..e74f9be0a 100644
--- a/src/plugins/python/weechat-python.c
+++ b/src/plugins/python/weechat-python.c
@@ -1140,7 +1140,11 @@ weechat_python_signal_debug_libs_cb (void *data, const char *signal,
(void) type_data;
(void) signal_data;
+#ifdef PY_VERSION
weechat_printf (NULL, " %s: %s", PYTHON_PLUGIN_NAME, PY_VERSION);
+#else
+ weechat_printf (NULL, " %s: (?)", PYTHON_PLUGIN_NAME);
+#endif
return WEECHAT_RC_OK;
}