aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-04-16 19:54:37 +0200
committertomsmeding <tom.smeding@gmail.com>2017-04-16 19:54:37 +0200
commitd365ea67e4269754c537c736e726a3b8ee8f06ea (patch)
tree92f50670c837b69a6c37e6bd61322e1b261479dd
parentca56fc589c46904e44b6836234d7281fcbecbbd6 (diff)
weechat: Add correct notify tags on messages
-rw-r--r--weechat/tomsg.c3
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);