close Warning: Failed to sync with repository "(default)": [Errno 12] Cannot allocate memory; repository information may be out of date. Look in the Trac log for more information including mitigation strategies.

Ticket #397: bug-387.diff

File bug-387.diff, 987 bytes (added by noel@…, at 2008-12-02T14:47:08Z)

patch (against 1.2.3) to protocols/jabber/conference.c

Line 
1*** bitlbee-1.2.3-orig/protocols/jabber/conference.c    Sat Sep  6 05:33:13 2008
2--- bitlbee-1.2.3/protocols/jabber/conference.c Mon Dec  1 22:53:27 2008
3***************
4*** 35,43 ****
5        roomjid = g_strdup_printf( "%s/%s", room, nick );
6        node = xt_new_node( "x", NULL, NULL );
7        xt_add_attr( node, "xmlns", XMLNS_MUC );
8-       node = jabber_make_packet( "presence", NULL, roomjid, node );
9        if( password )
10                xt_add_child( node, xt_new_node( "password", password, NULL ) );
11        jabber_cache_add( ic, node, jabber_chat_join_failed );
12       
13        if( !jabber_write_packet( ic, node ) )
14--- 35,43 ----
15        roomjid = g_strdup_printf( "%s/%s", room, nick );
16        node = xt_new_node( "x", NULL, NULL );
17        xt_add_attr( node, "xmlns", XMLNS_MUC );
18        if( password )
19                xt_add_child( node, xt_new_node( "password", password, NULL ) );
20+       node = jabber_make_packet( "presence", NULL, roomjid, node );
21        jabber_cache_add( ic, node, jabber_chat_join_failed );
22       
23        if( !jabber_write_packet( ic, node ) )