From 0983e38e640d5168c31ddc6663057268afaefb4a Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sun, 16 Apr 2017 21:11:05 +0200 Subject: weechat: Don't beep on history messages --- weechat/tomsg.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'weechat/tomsg.c') diff --git a/weechat/tomsg.c b/weechat/tomsg.c index 2103406..90e43b0 100644 --- a/weechat/tomsg.c +++ b/weechat/tomsg.c @@ -194,7 +194,7 @@ static void push_net_callback(int fd,struct net_response res,void *payload){ fprintf(debugf,"push_net_callback(fd=%d,res={.type=%d})\n",fd,res.type); struct conndata *conn=weechat_hashtable_get(conntable,&fd); assert(conn); - if(res.type==NET_MESSAGE||res.type==NET_JOIN||res.type==NET_INVITE){ + if(res.type==NET_MESSAGE||res.type==NET_HISTORY||res.type==NET_JOIN||res.type==NET_INVITE){ i64 roomi; for(roomi=0;roominrooms;roomi++){ if(strcmp(conn->rooms[roomi]->name,res.room)==0){ @@ -215,6 +215,10 @@ static void push_net_callback(int fd,struct net_response res,void *payload){ weechat_printf_date_tags( room->buffer,res.timestamp/1000000LL,private?"notify_private":"notify_message", "%s\t%s",res.username,res.message); + } else if(res.type==NET_HISTORY){ + weechat_printf_date_tags( + room->buffer,res.timestamp/1000000LL,NULL, + "%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); if(room->buffer_nickgroup){ -- cgit v1.2.3-54-g00ecf