summaryrefslogtreecommitdiff
path: root/src/plugins/lua
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/lua
parentfba983958728c11a05fe125ff5d337c663076a24 (diff)
downloadweechat-717eaae4962c9d65ed205e099dc850818fb7f8e4.zip
scripts: use #ifdef to check if versions are defined in signal "debug_libs"
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/weechat-lua.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/plugins/lua/weechat-lua.c b/src/plugins/lua/weechat-lua.c
index bddcff600..106422992 100644
--- a/src/plugins/lua/weechat-lua.c
+++ b/src/plugins/lua/weechat-lua.c
@@ -796,7 +796,11 @@ weechat_lua_signal_debug_libs_cb (void *data, const char *signal,
(void) type_data;
(void) signal_data;
+#ifdef LUA_VERSION
weechat_printf (NULL, " %s: %s", LUA_PLUGIN_NAME, LUA_VERSION);
+#else
+ weechat_printf (NULL, " %s: (?)", LUA_PLUGIN_NAME);
+#endif
return WEECHAT_RC_OK;
}