diff options
Diffstat (limited to 'src/plugins/scripts/tcl/weechat-tcl-api.c')
-rw-r--r-- | src/plugins/scripts/tcl/weechat-tcl-api.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/plugins/scripts/tcl/weechat-tcl-api.c b/src/plugins/scripts/tcl/weechat-tcl-api.c index 94e32e718..60ede1b70 100644 --- a/src/plugins/scripts/tcl/weechat-tcl-api.c +++ b/src/plugins/scripts/tcl/weechat-tcl-api.c @@ -198,17 +198,20 @@ weechat_tcl_api_register (ClientData clientData, Tcl_Interp *interp, int objc, /* register script */ tcl_current_script = script_add (weechat_tcl_plugin, - &tcl_scripts, + &tcl_scripts, &last_tcl_script, (tcl_current_script_filename) ? tcl_current_script_filename : "", name, author, version, license, description, shutdown_func, charset); if (tcl_current_script) { - weechat_printf (NULL, - weechat_gettext ("%s: registered script \"%s\", " - "version %s (%s)"), - TCL_PLUGIN_NAME, name, version, description); + if ((weechat_tcl_plugin->debug >= 1) || !tcl_quiet) + { + weechat_printf (NULL, + weechat_gettext ("%s: registered script \"%s\", " + "version %s (%s)"), + TCL_PLUGIN_NAME, name, version, description); + } tcl_current_script->interpreter = (void *)interp; } else |