1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-04 00:33:13 +02:00

New "close callback" for buffers, use of this callback in IRC plugin to leave channel or disconnect from server when buffer is closed

This commit is contained in:
Sebastien Helleu
2008-02-01 18:56:12 +01:00
parent d15c1956b5
commit 184700e597
23 changed files with 442 additions and 194 deletions
+4
View File
@@ -526,7 +526,11 @@ plugin_remove (struct t_weechat_plugin *plugin)
ptr_buffer = ptr_buffer->next_buffer)
{
if (ptr_buffer->plugin == plugin)
{
ptr_buffer->plugin = NULL;
ptr_buffer->close_callback = NULL;
ptr_buffer->close_callback_data = NULL;
}
}
/* free data */