From d365ea67e4269754c537c736e726a3b8ee8f06ea Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sun, 16 Apr 2017 19:54:37 +0200 Subject: weechat: Add correct notify tags on messages --- weechat/tomsg.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/weechat/tomsg.c b/weechat/tomsg.c index 6e9042b..439322b 100644 --- a/weechat/tomsg.c +++ b/weechat/tomsg.c @@ -211,8 +211,9 @@ static void push_net_callback(int fd,struct net_response res,void *payload){ } if(res.type==NET_MESSAGE){ + bool private=room->nmembers<=2; weechat_printf_date_tags( - room->buffer,res.timestamp/1000000LL,NULL, + room->buffer,res.timestamp/1000000LL,private?"notify_private":"notify_message", "%s\t%s",res.username,res.message); } else if(res.type==NET_JOIN){ weechat_printf(room->buffer,"%sUser %s joined this room",netpfx,res.username); -- cgit v1.2.3-70-g09d2