diff options
author | tomsmeding <tom.smeding@gmail.com> | 2017-04-16 19:54:37 +0200 |
---|---|---|
committer | tomsmeding <tom.smeding@gmail.com> | 2017-04-16 19:54:37 +0200 |
commit | d365ea67e4269754c537c736e726a3b8ee8f06ea (patch) | |
tree | 92f50670c837b69a6c37e6bd61322e1b261479dd /weechat | |
parent | ca56fc589c46904e44b6836234d7281fcbecbbd6 (diff) |
weechat: Add correct notify tags on messages
Diffstat (limited to 'weechat')
-rw-r--r-- | weechat/tomsg.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |