Mon, 08 Jun 2009 02:24:49 +0000
Use the JID for adding a chat/buddy because the name is for descriptive
purpose only, and using it will not fill in the Add Chat dialog correctly.
Because the JID is not visible, the user will not know what to actually put
there instead.
| pidgin/plugins/disco/gtkdisco.c | file | annotate | diff | comparison | revisions |
--- a/pidgin/plugins/disco/gtkdisco.c Sun Jun 07 22:12:26 2009 +0000 +++ b/pidgin/plugins/disco/gtkdisco.c Mon Jun 08 02:24:49 2009 +0000 @@ -216,17 +216,17 @@ { struct _menu_cb_info *info = g_object_get_data(G_OBJECT(button), "disco-info"); PurpleAccount *account; - const char *name; + const char *jid; g_return_if_fail(info != NULL); account = purple_connection_get_account(info->list->pc); - name = info->service->name; + jid = info->service->jid; if (info->service->type == XMPP_DISCO_SERVICE_TYPE_CHAT) - purple_blist_request_add_chat(account, NULL, NULL, name); + purple_blist_request_add_chat(account, NULL, NULL, jid); else - purple_blist_request_add_buddy(account, name, NULL, NULL); + purple_blist_request_add_buddy(account, jid, NULL, NULL); } static void