diff options
author | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-07 14:29:46 +0200 |
---|---|---|
committer | Sebastien Helleu <flashcode@flashtux.org> | 2008-10-07 14:29:46 +0200 |
commit | d5b78f0d8f2f0d30c0bef610db4ec80fc0f1f9e1 (patch) | |
tree | 16280869e3d70ac1e522d70ea554c02291da179b /src/plugins | |
parent | 44944ef01ff2c0b81d4b6d6ce6d0f95ee6dd35a5 (diff) | |
download | weechat-d5b78f0d8f2f0d30c0bef610db4ec80fc0f1f9e1.zip |
Add backlog for IRC channel and private buffers
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/demo/demo.c | 6 | ||||
-rw-r--r-- | src/plugins/irc/irc-channel.c | 3 |
2 files changed, 7 insertions, 2 deletions
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) |