aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <github@wilmer.gaast.net>2015-01-26 20:46:11 +0000
committerWilmer van der Gaast <github@wilmer.gaast.net>2015-01-26 20:46:11 +0000
commit12fe5ea5ee1fb6efc73213e715a44b94239c71b9 (patch)
treeb6f76c3ae527a959eeb41d01dbf2a16c6ff5b346
parentce402b20d82ec323e6bd5e306de934773590742d (diff)
parentfd213feecb33f1bbb46af3199916a001c6ace1a0 (diff)
Merge pull request #5 from seirl/purple_title
purple: add topic and name_hint to groupchats
-rw-r--r--protocols/purple/purple.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/purple/purple.c b/protocols/purple/purple.c
index 97d2a4ae..118a62ad 100644
--- a/protocols/purple/purple.c
+++ b/protocols/purple/purple.c
@@ -831,6 +831,12 @@ void prplcb_conv_new( PurpleConversation *conv )
struct groupchat *gc;
gc = imcb_chat_new( ic, conv->name );
+ 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;