# HG changeset patch # User Elliott Sales de Andrade # Date 1244427889 0 # Node ID 0d01bd0c19bafe8c999628085e5d1886b3dcecb8 # Parent 0baf79f7a58d32130904949b09016310533478dc 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. diff -r 0baf79f7a58d -r 0d01bd0c19ba pidgin/plugins/disco/gtkdisco.c --- 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