diff options
Diffstat (limited to 'weechat')
-rw-r--r-- | weechat/tomsg.c | 6 |
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); |