From 36ee8c61168ef4c73d5637d1c7a426df6ed15735 Mon Sep 17 00:00:00 2001 From: Antoine Pietri Date: Sun, 25 Jan 2015 21:45:16 +0100 Subject: purple: add topic and name_hint to groupchats --- protocols/purple/purple.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'protocols') diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c index 97d2a4ae..da3134dd 100644 --- a/protocols/purple/purple.c +++ b/protocols/purple/purple.c @@ -831,6 +831,9 @@ void prplcb_conv_new( PurpleConversation *conv ) struct groupchat *gc; gc = imcb_chat_new( ic, conv->name ); + imcb_chat_name_hint( gc, conv->title ); + imcb_chat_topic( gc, NULL, conv->title, 0 ); + conv->ui_data = gc; gc->data = conv; -- cgit v1.2.3 From fd213feecb33f1bbb46af3199916a001c6ace1a0 Mon Sep 17 00:00:00 2001 From: Antoine Pietri Date: Mon, 26 Jan 2015 14:20:20 +0100 Subject: purple: add NULL guard around topic and name hint --- protocols/purple/purple.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'protocols') diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c index da3134dd..118a62ad 100644 --- a/protocols/purple/purple.c +++ b/protocols/purple/purple.c @@ -831,8 +831,11 @@ void prplcb_conv_new( PurpleConversation *conv ) struct groupchat *gc; gc = imcb_chat_new( ic, conv->name ); - imcb_chat_name_hint( gc, conv->title ); - imcb_chat_topic( gc, NULL, conv->title, 0 ); + if( conv->title != NULL ) + { + imcb_chat_name_hint( gc, conv->title ); + imcb_chat_topic( gc, NULL, conv->title, 0 ); + } conv->ui_data = gc; gc->data = conv; -- cgit v1.2.3