aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@frugalware.org>2010-04-14 00:55:42 +0200
committerMiklos Vajna <vmiklos@frugalware.org>2010-04-14 00:55:42 +0200
commit72b60c7e7d3e109a19aa8d856634f0213a6cedb8 (patch)
tree72185f1d8de2c7d8d1f5048c31a9a301a4aa04d0
parent7cc2c1ef13822cf37cfe82cbea03127b74d546a0 (diff)
use imcb_chat_name_hint() if it's available
-rw-r--r--skype/skype.c8
1 files changed, 7 insertions, 1 deletions
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