aboutsummaryrefslogtreecommitdiff
path: root/weechat
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2021-02-07 12:07:12 +0100
committerTom Smeding <tom@tomsmeding.com>2021-02-07 12:07:12 +0100
commit8c810b89cbdedfd72a1cb683cbdd96795876f083 (patch)
tree051593221aadfb620a97cbd837af70bb830f425a /weechat
parent7e169db30f3bc899c8708badf39d8ed268ef1968 (diff)
weechat: Always private channel
Diffstat (limited to 'weechat')
-rw-r--r--weechat/tomsg.c6
1 files 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);