From 8c810b89cbdedfd72a1cb683cbdd96795876f083 Mon Sep 17 00:00:00 2001 From: Tom Smeding Date: Sun, 7 Feb 2021 12:07:12 +0100 Subject: weechat: Always private channel --- weechat/tomsg.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/weechat/tomsg.c b/weechat/tomsg.c index 9701509..cf6c7e6 100644 --- a/weechat/tomsg.c +++ b/weechat/tomsg.c @@ -27,6 +27,8 @@ static const char *errpfx,*netpfx; #define NICK_COLOR "default" #define NICK_AWAY_COLOR "weechat.color.nicklist_away" +#define ALWAYS_PRIVATE true + struct roomdata{ char *name; @@ -84,7 +86,7 @@ static void display_message( username, is_history ? ",notify_none,no_log" : is_self_msg ? ",notify_none,log1" - : room->nmembers == 2 ? ",notify_private,log1" + : ALWAYS_PRIVATE || room->nmembers == 2 ? ",notify_private,log1" : ",notify_message,log1", is_reply ? ",tomsg_reply" : ""); @@ -259,7 +261,7 @@ static void edit_message_msgid(struct roomdata *room, int64_t pending_id, int64_ static void room_update_attributes(struct roomdata *room){ - bool private=room->nmembers==2; + bool private=ALWAYS_PRIVATE||room->nmembers==2; weechat_buffer_set(room->buffer,"localvar_set_type",private?"private":"channel"); weechat_buffer_set(room->buffer,"notify",private?"3":"2"); debugf("room_update_attributes: set private for room %s to %d\n",room->name,private); -- cgit v1.2.3-54-g00ecf