aboutsummaryrefslogtreecommitdiff
path: root/weechat/tomsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'weechat/tomsg.c')
-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);