Mercurial > pidgin.yaz
changeset 24772:a0b89076a163
some server(s) don't like empty resource which we now default to. I am not
entirely sure if this is the right place to do this though.
author | Ka-Hing Cheung <khc@hxbc.us> |
---|---|
date | Thu, 18 Dec 2008 06:28:36 +0000 |
parents | 8fb78d30ea83 |
children | 98bbeed2481c |
files | libpurple/protocols/jabber/jabber.c |
diffstat | 1 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/libpurple/protocols/jabber/jabber.c Thu Dec 18 02:03:20 2008 +0000 +++ b/libpurple/protocols/jabber/jabber.c Thu Dec 18 06:28:36 2008 +0000 @@ -1413,6 +1413,15 @@ if(js->protocol_version == JABBER_PROTO_0_9 && js->registration) { jabber_register_start(js); } else if(js->auth_type == JABBER_AUTH_IQ_AUTH) { + /* with dreamhost's xmpp server at least, you have to + specify a resource or you will get a "406: Not + Acceptable" + */ + if(!js->user->resource || *js->user->resource == '\0') { + g_free(js->user->resource); + js->user->resource = g_strdup("Home"); + } + jabber_auth_start_old(js); } break;