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

Refresh screen when exiting WeeChat (to display messages printed after /quit)

This commit is contained in:
Sebastien Helleu
2010-03-20 17:09:07 +01:00
parent 9d96090d7d
commit 7925b2d242
21 changed files with 184 additions and 50 deletions
+17 -3
View File
@@ -840,9 +840,12 @@ plugin_unload (struct t_weechat_plugin *plugin)
plugin_remove (plugin);
gui_chat_printf (NULL,
_("Plugin \"%s\" unloaded"),
(name) ? name : "???");
if ((weechat_debug_core >= 1) || !plugin_quiet)
{
gui_chat_printf (NULL,
_("Plugin \"%s\" unloaded"),
(name) ? name : "???");
}
if (name)
free (name);
}
@@ -875,10 +878,21 @@ plugin_unload_name (const char *name)
void
plugin_unload_all ()
{
int plugins_loaded;
plugins_loaded = (weechat_plugins) ? 1 : 0;
plugin_quiet = 1;
while (weechat_plugins)
{
plugin_unload (last_weechat_plugin);
}
plugin_quiet = 0;
if (plugins_loaded)
{
gui_chat_printf (NULL, _("Plugins unloaded"));
}
}
/*