diff --git a/src/twc-chat.c b/src/twc-chat.c index f095d1f..2ceb16d 100644 --- a/src/twc-chat.c +++ b/src/twc-chat.c @@ -89,6 +89,11 @@ twc_chat_new(struct t_twc_profile *profile, const char *name) return NULL; } + /* disable logging for buffer */ + weechat_hook_signal_send("logger_stop", + WEECHAT_HOOK_SIGNAL_POINTER, + chat->buffer); + twc_chat_queue_refresh(chat); twc_list_item_new_data_add(profile->chats, chat); diff --git a/src/twc-profile.c b/src/twc-profile.c index f0ade1a..60d91bb 100644 --- a/src/twc-profile.c +++ b/src/twc-profile.c @@ -286,6 +286,11 @@ twc_profile_load(struct t_twc_profile *profile) if (!(profile->buffer)) return TWC_RC_ERROR; + /* disable logging for buffer */ + weechat_hook_signal_send("logger_stop", + WEECHAT_HOOK_SIGNAL_POINTER, + profile->buffer); + profile->nicklist_group = weechat_nicklist_add_group(profile->buffer, NULL, NULL, NULL, true); weechat_buffer_set(profile->buffer, "nicklist", "1");