Mercurial > pidgin.yaz
diff libpurple/protocols/jabber/jabber.c @ 31032: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 |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Sun Oct 10 05:41:57 2010 +0000 +++ b/libpurple/protocols/jabber/jabber.c Sun Oct 10 16:42:30 2010 +0000 @@ -968,6 +968,11 @@ js->buddies = g_hash_table_new_full(g_str_hash, g_str_equal, g_free, (GDestroyNotify)jabber_buddy_free); + /* This is overridden during binding, but we need it here + * in case the server only does legacy non-sasl auth!. + */ + purple_connection_set_display_name(gc, user); + js->user_jb = jabber_buddy_find(js, user, TRUE); g_free(user); if (!js->user_jb) {