1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-28 05:46:38 +02:00

lua: remote string "Lua" from Lua version in output of /debug libs

This commit is contained in:
Sébastien Helleu
2024-08-12 08:22:48 +02:00
parent b63f63f001
commit 0637e9f629
2 changed files with 5 additions and 1 deletions
+4 -1
View File
@@ -1269,7 +1269,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
/* set interpreter name and version */
weechat_hashtable_set (plugin->variables, "interpreter_name",
plugin->name);
#ifdef LUA_VERSION
#if defined(LUA_VERSION_MAJOR) && defined(LUA_VERSION_MINOR)
weechat_hashtable_set (plugin->variables, "interpreter_version",
LUA_VERSION_MAJOR "." LUA_VERSION_MINOR);
#elif LUA_VERSION
weechat_hashtable_set (plugin->variables, "interpreter_version",
LUA_VERSION);
#else