# HG changeset patch # User Ka-Hing Cheung # Date 1229581716 0 # Node ID a0b89076a16340fd0418802982ed5f49c1030083 # Parent 8fb78d30ea836458b03bd661d87671eb156fb051 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. diff -r 8fb78d30ea83 -r a0b89076a163 libpurple/protocols/jabber/jabber.c --- 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;