From 717eaae4962c9d65ed205e099dc850818fb7f8e4 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Mon, 18 Nov 2013 14:32:13 +0100 Subject: scripts: use #ifdef to check if versions are defined in signal "debug_libs" --- src/plugins/lua/weechat-lua.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/plugins/lua') 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; } -- cgit v1.2.3