summaryrefslogtreecommitdiff
path: root/src/plugins/scripts/tcl
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2010-03-20 17:09:07 +0100
committerSebastien Helleu <flashcode@flashtux.org>2010-03-20 17:09:07 +0100
commit7925b2d242513844cb42e4b146994f7b00643f7a (patch)
tree53feb01701ad0dc63081b87343506a82d9a9b526 /src/plugins/scripts/tcl
parent9d96090d7d6fe7841973f10c51710ec505ef034e (diff)
downloadweechat-7925b2d242513844cb42e4b146994f7b00643f7a.zip
Refresh screen when exiting WeeChat (to display messages printed after /quit)
Diffstat (limited to 'src/plugins/scripts/tcl')
-rw-r--r--src/plugins/scripts/tcl/weechat-tcl.c15
1 files changed, 9 insertions, 6 deletions
diff --git a/src/plugins/scripts/tcl/weechat-tcl.c b/src/plugins/scripts/tcl/weechat-tcl.c
index 4a5a05666..cd2216b68 100644
--- a/src/plugins/scripts/tcl/weechat-tcl.c
+++ b/src/plugins/scripts/tcl/weechat-tcl.c
@@ -240,9 +240,12 @@ weechat_tcl_unload (struct t_plugin_script *script)
Tcl_Interp* interp;
void *pointer;
- weechat_printf (NULL,
- weechat_gettext ("%s: unloading script \"%s\""),
- TCL_PLUGIN_NAME, script->name);
+ if ((weechat_tcl_plugin->debug >= 1) || !tcl_quiet)
+ {
+ weechat_printf (NULL,
+ weechat_gettext ("%s: unloading script \"%s\""),
+ TCL_PLUGIN_NAME, script->name);
+ }
if (script->shutdown_func && script->shutdown_func[0])
{
@@ -611,10 +614,10 @@ weechat_plugin_init (struct t_weechat_plugin *plugin, int argc, char *argv[])
int
weechat_plugin_end (struct t_weechat_plugin *plugin)
{
- (void) plugin;
-
/* unload all scripts */
- weechat_tcl_unload_all ();
+ tcl_quiet = 1;
+ script_end (plugin, &tcl_scripts, &weechat_tcl_unload_all);
+ tcl_quiet = 0;
return WEECHAT_RC_OK;
}