From 72b60c7e7d3e109a19aa8d856634f0213a6cedb8 Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Wed, 14 Apr 2010 00:55:42 +0200 Subject: use imcb_chat_name_hint() if it's available --- skype/skype.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/skype/skype.c b/skype/skype.c index 5bb79591..ffc4f1af 100644 --- a/skype/skype.c +++ b/skype/skype.c @@ -752,11 +752,17 @@ static void skype_parse_chat(struct im_connection *ic, char *line) if (gc) imcb_chat_free(gc); if (!strcmp(info, "STATUS MULTI_SUBSCRIBED")) { - imcb_chat_new(ic, id); + gc = imcb_chat_new(ic, id); +#if defined(BITLBEE_VERSION_CODE) && BITLBEE_VERSION_CODE >= BITLBEE_VER(1, 2, 6) + imcb_chat_name_hint(gc, id); +#endif skype_printf(ic, "GET CHAT %s ADDER\n", id); skype_printf(ic, "GET CHAT %s TOPIC\n", id); } else if (!strcmp(info, "STATUS DIALOG") && sd->groupchat_with) { gc = imcb_chat_new(ic, id); +#if defined(BITLBEE_VERSION_CODE) && BITLBEE_VERSION_CODE >= BITLBEE_VER(1, 2, 6) + imcb_chat_name_hint(gc, id); +#endif /* According to the docs this * is necessary. However it * does not seem the situation -- cgit v1.2.3