summaryrefslogtreecommitdiff
path: root/src/plugins/lua
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2012-08-03 12:13:21 +0200
committerSebastien Helleu <flashcode@flashtux.org>2012-08-03 12:13:21 +0200
commitb501fd1b2406c98181f2c5819008458a03e7771d (patch)
tree1c73fdc19ee3918f0009296411f33d4a29797ea3 /src/plugins/lua
parent746ca9623d151f69f4adcb9ac6d580c8dfaad559 (diff)
downloadweechat-b501fd1b2406c98181f2c5819008458a03e7771d.zip
scripts: add hdata with list of scripts for each language
Diffstat (limited to 'src/plugins/lua')
-rw-r--r--src/plugins/lua/weechat-lua.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/plugins/lua/weechat-lua.c b/src/plugins/lua/weechat-lua.c
index 654462d27..a1e9110bb 100644
--- a/src/plugins/lua/weechat-lua.c
+++ b/src/plugins/lua/weechat-lua.c
@@ -616,6 +616,21 @@ weechat_lua_completion_cb (void *data, const char *completion_item,
}
/*
+ * weechat_lua_hdata_cb: callback for hdata
+ */
+
+struct t_hdata *
+weechat_lua_hdata_cb (void *data, const char *hdata_name)
+{
+ /* make C compiler happy */
+ (void) data;
+
+ return plugin_script_hdata_script (weechat_plugin,
+ &lua_scripts, &last_lua_script,
+ hdata_name);
+}
+
+/*
* weechat_lua_infolist_cb: callback for infolist
*/
@@ -761,6 +776,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
init.callback_command = &weechat_lua_command_cb;
init.callback_completion = &weechat_lua_completion_cb;
+ init.callback_hdata = &weechat_lua_hdata_cb;
init.callback_infolist = &weechat_lua_infolist_cb;
init.callback_signal_debug_dump = &weechat_lua_signal_debug_dump_cb;
init.callback_signal_buffer_closed = &weechat_lua_signal_buffer_closed_cb;