summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/plugins/demo/demo.c6
-rw-r--r--src/plugins/irc/irc-channel.c3
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)