aboutsummaryrefslogtreecommitdiffstats
path: root/protocols/bee_chat.c
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2016-10-16 17:15:32 +0200
committerMarius Halden <marius.h@lden.org>2016-10-16 17:15:32 +0200
commit305a1ddb6c5b03615f98ad45e80ee3d7a5387a3a (patch)
tree68d677081a1ec5806de151f71465e38c84b751d3 /protocols/bee_chat.c
parentfe1b713ba65a2735548eec660c5b00357b15690a (diff)
parent6e991a9464ce13fb742dcd50a37d5e00084b4233 (diff)
Merge branch 'master' into patched-master
Diffstat (limited to 'protocols/bee_chat.c')
-rw-r--r--protocols/bee_chat.c25
1 files changed, 24 insertions, 1 deletions
diff --git a/protocols/bee_chat.c b/protocols/bee_chat.c
index 76ed7f85..31b37737 100644
--- a/protocols/bee_chat.c
+++ b/protocols/bee_chat.c
@@ -274,7 +274,30 @@ void imcb_chat_invite(struct im_connection *ic, const char *name, const char *wh
}
}
-void bee_chat_list_finish(struct im_connection *ic)
+void imcb_chat_list_finish(struct im_connection *ic)
{
cmd_chat_list_finish(ic);
}
+
+void bee_chat_list_finish(struct im_connection *ic)
+{
+ imcb_log(ic, "Warning: using deprecated bee_chat_list_finish. This will be removed in the stable release.");
+ imcb_chat_list_finish(ic);
+}
+
+void imcb_chat_list_free(struct im_connection *ic)
+{
+ bee_chat_info_t *ci;
+ GSList *l = ic->chatlist;
+
+ while (l) {
+ ci = l->data;
+ l = g_slist_delete_link(l, l);
+
+ g_free(ci->title);
+ g_free(ci->topic);
+ g_free(ci);
+ }
+
+ ic->chatlist = NULL;
+}