From e185e00b29c3d9ac5bc77bd3e11637802a643bf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A5vard=20Pettersson?= Date: Wed, 8 Feb 2017 20:55:06 -0800 Subject: [PATCH] Disable logging for Tox buffers As per the Tox Client Standard. --- src/twc-chat.c | 5 +++++ src/twc-profile.c | 5 +++++ 2 files changed, 10 insertions(+) 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");