From cbe3d8302cb1e50f7a5f00c10b5262ccddd51331 Mon Sep 17 00:00:00 2001 From: tomsmeding Date: Sat, 15 Apr 2017 17:19:05 +0200 Subject: weechat: Bugfixes Weechat: FIX YOUR DOCS! --- weechat/tomsg.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/weechat/tomsg.c b/weechat/tomsg.c index 3b188ec..8fcc3de 100644 --- a/weechat/tomsg.c +++ b/weechat/tomsg.c @@ -151,8 +151,8 @@ static void members_net_callback(int fd,struct net_response res,void *payload){ for(int i=0;ibuffer,room->buffer_nickgroup, - res.items[i],"chat_nick", - "","chat_nick", + res.items[i],"weechat.color.chat_nick", + "","weechat.color.chat_nick", 1); } room->nmembers=res.nitems; @@ -189,8 +189,8 @@ static void push_net_callback(int fd,struct net_response res,void *payload){ if(room->buffer_nickgroup){ weechat_nicklist_add_nick( room->buffer,room->buffer_nickgroup, - res.username,"chat_nick", - "","chat_nick", + res.username,"weechat.color.chat_nick", + "","weechat.color.chat_nick", 1); } room->nmembers++; @@ -228,6 +228,7 @@ static void roomlist_net_callback(int fd,struct net_response res,void *payload){ conn->nrooms=res.nitems; for(i64 i=0;irooms[i]=malloc(sizeof(struct roomdata)); + assert(room); room->name=strdup(res.items[i]); room->conn=conn; room->buffer=NULL; -- cgit v1.2.3-70-g09d2