summaryrefslogtreecommitdiff
path: root/src/plugins/tcl
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-11-17 20:51:54 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-11-17 20:51:54 +0100
commitb63ac8a0f10474d4ddda80a8eaacfecf71e844e2 (patch)
tree69441b8ee4edacbe7667eb385c68e33eb270e581 /src/plugins/tcl
parentbe9269dfc2132e53d7a777877f4da6af993eba22 (diff)
downloadweechat-b63ac8a0f10474d4ddda80a8eaacfecf71e844e2.zip
scripts: display lib version on signal "debug_libs"
Diffstat (limited to 'src/plugins/tcl')
-rw-r--r--src/plugins/tcl/weechat-tcl.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/plugins/tcl/weechat-tcl.c b/src/plugins/tcl/weechat-tcl.c
index 82090b327..096ef57fb 100644
--- a/src/plugins/tcl/weechat-tcl.c
+++ b/src/plugins/tcl/weechat-tcl.c
@@ -689,6 +689,25 @@ weechat_tcl_signal_debug_dump_cb (void *data, const char *signal,
}
/*
+ * Display infos about external libraries used.
+ */
+
+int
+weechat_tcl_signal_debug_libs_cb (void *data, const char *signal,
+ const char *type_data, void *signal_data)
+{
+ /* make C compiler happy */
+ (void) data;
+ (void) signal;
+ (void) type_data;
+ (void) signal_data;
+
+ weechat_printf (NULL, " %s: v%s", TCL_PLUGIN_NAME, TCL_VERSION);
+
+ return WEECHAT_RC_OK;
+}
+
+/*
* Callback called when a buffer is closed.
*/
@@ -806,6 +825,7 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
init.callback_hdata = &weechat_tcl_hdata_cb;
init.callback_infolist = &weechat_tcl_infolist_cb;
init.callback_signal_debug_dump = &weechat_tcl_signal_debug_dump_cb;
+ init.callback_signal_debug_libs = &weechat_tcl_signal_debug_libs_cb;
init.callback_signal_buffer_closed = &weechat_tcl_signal_buffer_closed_cb;
init.callback_signal_script_action = &weechat_tcl_signal_script_action_cb;
init.callback_load_file = &weechat_tcl_load_cb;