aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWilmer van der Gaast <wilmer@gaast.net>2008-09-28 12:21:55 +0100
committerWilmer van der Gaast <wilmer@gaast.net>2008-09-28 12:21:55 +0100
commitb2c062d609becdffc8c8542f68e260ab7b36dbcd (patch)
treed159c60054f38468a10f625d558d62487ebe2396
parent94acdd0d7beaa659a5f6b26673c5dea5dbcc4496 (diff)
Adding the password to the right part of the <presence> stanza so joining
password-protected rooms *really* works.
-rw-r--r--protocols/jabber/conference.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/protocols/jabber/conference.c b/protocols/jabber/conference.c
index ce2c0b86..480006bd 100644
--- a/protocols/jabber/conference.c
+++ b/protocols/jabber/conference.c
@@ -35,9 +35,9 @@ struct groupchat *jabber_chat_join( struct im_connection *ic, const char *room,
roomjid = g_strdup_printf( "%s/%s", room, nick );
node = xt_new_node( "x", NULL, NULL );
xt_add_attr( node, "xmlns", XMLNS_MUC );
- node = jabber_make_packet( "presence", NULL, roomjid, node );
if( password )
xt_add_child( node, xt_new_node( "password", password, NULL ) );
+ node = jabber_make_packet( "presence", NULL, roomjid, node );
jabber_cache_add( ic, node, jabber_chat_join_failed );
if( !jabber_write_packet( ic, node ) )