diff options
author | Wilmer van der Gaast <wilmer@gaast.net> | 2008-02-10 17:11:06 +0000 |
---|---|---|
committer | Wilmer van der Gaast <wilmer@gaast.net> | 2008-02-10 17:11:06 +0000 |
commit | 3038e476a93b2be057581b831749eac931a06559 (patch) | |
tree | 170b1e757751d4abf31a4df07efd3315c60875d5 /protocols/jabber/conference.c | |
parent | 1ecff5ee9ab540584a8b15814dcc15f706a26d4c (diff) |
Added support for password-protected Jabber chatrooms.
Diffstat (limited to 'protocols/jabber/conference.c')
-rw-r--r-- | protocols/jabber/conference.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/protocols/jabber/conference.c b/protocols/jabber/conference.c index f206e084..79fdd053 100644 --- a/protocols/jabber/conference.c +++ b/protocols/jabber/conference.c @@ -36,6 +36,8 @@ struct groupchat *jabber_chat_join( struct im_connection *ic, char *room, char * 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 ) ); jabber_cache_add( ic, node, jabber_chat_join_failed ); if( !jabber_write_packet( ic, node ) ) |