aboutsummaryrefslogtreecommitdiff
path: root/weechat/tomsg.c
diff options
context:
space:
mode:
Diffstat (limited to 'weechat/tomsg.c')
-rw-r--r--weechat/tomsg.c6
1 files changed, 5 insertions, 1 deletions
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;roomi<conn->nrooms;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){