From d5b78f0d8f2f0d30c0bef610db4ec80fc0f1f9e1 Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 7 Oct 2008 14:29:46 +0200 Subject: Add backlog for IRC channel and private buffers --- src/plugins/demo/demo.c | 6 ++++-- src/plugins/irc/irc-channel.c | 3 +++ 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'src/plugins') diff --git a/src/plugins/demo/demo.c b/src/plugins/demo/demo.c index 46437f93b..08c4dc5fd 100644 --- a/src/plugins/demo/demo.c +++ b/src/plugins/demo/demo.c @@ -171,9 +171,11 @@ demo_buffer_command_cb (void *data, struct t_gui_buffer *buffer, int argc, &demo_buffer_input_data_cb, NULL, &demo_buffer_close_cb, NULL); if (new_buffer) + { weechat_buffer_set (new_buffer, "display", "1"); - weechat_hook_signal_send ("logger_backlog", - WEECHAT_HOOK_SIGNAL_POINTER, new_buffer); + weechat_hook_signal_send ("logger_backlog", + WEECHAT_HOOK_SIGNAL_POINTER, new_buffer); + } } return WEECHAT_RC_OK; diff --git a/src/plugins/irc/irc-channel.c b/src/plugins/irc/irc-channel.c index dcc3350df..ac4fa5858 100644 --- a/src/plugins/irc/irc-channel.c +++ b/src/plugins/irc/irc-channel.c @@ -95,6 +95,9 @@ irc_channel_new (struct t_irc_server *server, int channel_type, free (new_channel); return NULL; } + + weechat_hook_signal_send ("logger_backlog", + WEECHAT_HOOK_SIGNAL_POINTER, new_buffer); } if (channel_type == IRC_CHANNEL_TYPE_CHANNEL) -- cgit v1.2.3