From d930418085de78ff5e2ba8e4de53e7085e8d00a8 Mon Sep 17 00:00:00 2001 From: Alexandre `Zopieux` Macabies Date: Sat, 24 Jan 2015 22:36:15 +0100 Subject: groupchat names can begin with # (it is then discarded) --- facebook/facebook.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/facebook/facebook.c b/facebook/facebook.c index e2b1e6a..af85025 100644 --- a/facebook/facebook.c +++ b/facebook/facebook.c @@ -425,8 +425,11 @@ struct groupchat *fb_data_groupchat_new(struct im_connection *ic, gc = imcb_chat_new(ic, stid); fata->gcs = g_slist_prepend(fata->gcs, gc); - if (name != NULL) + if (name != NULL) { + if (strchr(CTYPES, name[0]) != NULL) + name++; imcb_chat_name_hint(gc, name); + } imcb_chat_add_buddy(gc, ic->acc->user); fb_api_thread_info(fata->api, tid); -- cgit v1.2.3