diff options
Diffstat (limited to 'weechat')
-rw-r--r-- | weechat/tomsg.c | 9 |
1 files 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;i<res.nitems;i++){ weechat_nicklist_add_nick( room->buffer,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;i<res.nitems;i++){ struct roomdata *room=conn->rooms[i]=malloc(sizeof(struct roomdata)); + assert(room); room->name=strdup(res.items[i]); room->conn=conn; room->buffer=NULL; |