Changeset 1c3008a for protocols/jabber
- Timestamp:
- 2009-12-13T14:48:56Z (15 years ago)
- Branches:
- master
- Children:
- e8c8d00
- Parents:
- 2288705
- Location:
- protocols/jabber
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
protocols/jabber/Makefile
r2288705 r1c3008a 10 10 11 11 # [SH] Program variables 12 objects = conference.o io.o iq.o jabber.o jabber_util.o message.o presence.o s asl.o si.o s5bytestream.o12 objects = conference.o io.o iq.o jabber.o jabber_util.o message.o presence.o s5bytestream.o sasl.o si.o 13 13 14 14 CFLAGS += -Wall -
protocols/jabber/iq.c
r2288705 r1c3008a 99 99 XMLNS_MUC, 100 100 XMLNS_PING, 101 102 103 101 XMLNS_SI, 102 XMLNS_BYTESTREAMS, 103 XMLNS_FILETRANSFER, 104 104 NULL }; 105 105 const char **f; … … 127 127 else if( strcmp( type, "set" ) == 0 ) 128 128 { 129 if( 130 129 if( ( c = xt_find_node( node->children, "si" ) ) && 130 ( strcmp( xt_find_attr( c, "xmlns" ), XMLNS_SI ) == 0 ) ) 131 131 { 132 132 return jabber_si_handle_request( ic, node, c ); 133 } else if( !( c = xt_find_node( node->children, "query" ) ) || 134 !( s = xt_find_attr( c, "xmlns" ) ) ) 133 } 134 else if( !( c = xt_find_node( node->children, "query" ) ) || 135 !( s = xt_find_attr( c, "xmlns" ) ) ) 135 136 { 136 137 imcb_log( ic, "Warning: Received incomplete IQ-%s packet", type ); 137 138 return XT_HANDLED; 138 } else if( strcmp( s, XMLNS_ROSTER ) == 0 ) 139 } 140 else if( strcmp( s, XMLNS_ROSTER ) == 0 ) 139 141 { 140 142 /* This is a roster push. XMPP servers send this when someone … … 160 162 pack = 0; 161 163 } 162 } else if( strcmp( s, XMLNS_BYTESTREAMS ) == 0 ) 163 { 164 /* Bytestream Request (stage 2 of file transfer) */ 164 } 165 else if( strcmp( s, XMLNS_BYTESTREAMS ) == 0 ) 166 { 167 /* Bytestream Request (stage 2 of file transfer) */ 165 168 return jabber_bs_recv_request( ic, node, c ); 166 } else 169 } 170 else 167 171 { 168 172 xt_free_node( reply ); … … 655 659 656 660 c = c->children; 657 while( ( c = xt_find_node( c, "feature" ) ) ) { 661 while( ( c = xt_find_node( c, "feature" ) ) ) 662 { 658 663 feature = xt_find_attr( c, "var" ); 659 bud->features = g_slist_append( bud->features, g_strdup(feature) );664 bud->features = g_slist_append( bud->features, g_strdup( feature ) ); 660 665 c = c->next; 661 666 } … … 719 724 c = c->next; 720 725 } 721 } else if( strcmp( xt_find_attr( c, "xmlns" ), XMLNS_DISCO_INFO ) == 0 ) 726 } 727 else if( strcmp( xt_find_attr( c, "xmlns" ), XMLNS_DISCO_INFO ) == 0 ) 722 728 { 723 729 char *category, *type; … … 737 743 c = c->next; 738 744 } 739 } else if( strcmp( xt_find_attr( c, "xmlns" ), XMLNS_BYTESTREAMS ) == 0 ) 745 } 746 else if( strcmp( xt_find_attr( c, "xmlns" ), XMLNS_BYTESTREAMS ) == 0 ) 740 747 { 741 748 char *host, *jid; … … 761 768 if( jd->have_streamhosts == 0 ) 762 769 jd->have_streamhosts++; 770 763 771 return XT_HANDLED; 764 772 } -
protocols/jabber/jabber.c
r2288705 r1c3008a 63 63 64 64 s = set_add( &acc->set, "priority", "0", set_eval_priority, acc ); 65 66 s = set_add( &acc->set, "proxy", "<local>;<auto>", NULL, acc ); 65 67 66 68 s = set_add( &acc->set, "resource", "BitlBee", NULL, acc ); … … 80 82 s = set_add( &acc->set, "xmlconsole", "false", set_eval_bool, acc ); 81 83 s->flags |= ACC_SET_OFFLINE_ONLY; 82 83 s = set_add( &acc->set, "proxy", "<local>;<auto>", NULL, acc );84 84 } 85 85 -
protocols/jabber/jabber.h
r2288705 r1c3008a 60 60 } jabber_buddy_flags_t; 61 61 62 /* Stores a streamhost's (a.k.a. proxy) data */62 /* Stores a streamhost's (a.k.a. proxy) data */ 63 63 typedef struct 64 64 {
Note: See TracChangeset
for help on using the changeset viewer.