comparison libpurple/protocols/jabber/jabber.c @ 30597:adce8f13a749

jabber: Set a connection display name even when using legacy auth Previously, the only place we were setting one was in the bind-result code path, so it was always NULL when doing legacy auth, but that causes issues with jabber_presence_fake_to_self, so let's just have a default init in jabber_stream_new(). Should Fixes #12499
author Paul Aurich <paul@darkrain42.org>
date Sun, 10 Oct 2010 16:42:30 +0000
parents 27e5213d5da1
children bc0bccdbc28f
comparison
equal deleted inserted replaced
30595:11cfc72c0330 30597:adce8f13a749
965 return NULL; 965 return NULL;
966 } 966 }
967 967
968 js->buddies = g_hash_table_new_full(g_str_hash, g_str_equal, 968 js->buddies = g_hash_table_new_full(g_str_hash, g_str_equal,
969 g_free, (GDestroyNotify)jabber_buddy_free); 969 g_free, (GDestroyNotify)jabber_buddy_free);
970
971 /* This is overridden during binding, but we need it here
972 * in case the server only does legacy non-sasl auth!.
973 */
974 purple_connection_set_display_name(gc, user);
970 975
971 js->user_jb = jabber_buddy_find(js, user, TRUE); 976 js->user_jb = jabber_buddy_find(js, user, TRUE);
972 g_free(user); 977 g_free(user);
973 if (!js->user_jb) { 978 if (!js->user_jb) {
974 /* This basically *can't* fail, but for good measure... */ 979 /* This basically *can't* fail, but for good measure... */