aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomsmeding <tom.smeding@gmail.com>2017-04-15 17:19:05 +0200
committertomsmeding <tom.smeding@gmail.com>2017-04-15 17:19:05 +0200
commitcbe3d8302cb1e50f7a5f00c10b5262ccddd51331 (patch)
tree69c5a2b65a841ae32696049005ddcb3ea650fb87
parente8114307ea979fadca4d2886bf922da16f7fc0a2 (diff)
weechat: Bugfixes
Weechat: FIX YOUR DOCS!
-rw-r--r--weechat/tomsg.c9
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;