Ignore:
Timestamp:
2006-10-08T18:41:11Z (18 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
6a1128d
Parents:
038d17f
Message:

Moved handling of all IQ packets to event handlers. Cleaned up a LOT of
mess in iq.c!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • protocols/jabber/io.c

    r038d17f r861c199  
    214214                                        else
    215215                                        {
    216                                                 return jabber_start_iq_auth( gc );
     216                                                return jabber_init_iq_auth( gc );
    217217                                        }
    218218                                }
     
    351351        else if( !( jd->flags & JFLAG_AUTHENTICATED ) && sasl_supported( gc ) )
    352352        {
    353                 if( !jabber_start_iq_auth( gc ) )
     353                if( !jabber_init_iq_auth( gc ) )
    354354                        return XT_ABORT;
    355355        }
     
    360360                xt_add_attr( reply, "xmlns", "urn:ietf:params:xml:ns:xmpp-bind" );
    361361                reply = jabber_make_packet( "iq", "set", NULL, reply );
    362                 jabber_cache_add( gc, reply );
     362                jabber_cache_add( gc, reply, jabber_pkt_bind_sess );
    363363               
    364364                if( !jabber_write_packet( gc, reply ) )
     
    373373                xt_add_attr( reply, "xmlns", "urn:ietf:params:xml:ns:xmpp-session" );
    374374                reply = jabber_make_packet( "iq", "set", NULL, reply );
    375                 jabber_cache_add( gc, reply );
     375                jabber_cache_add( gc, reply, jabber_pkt_bind_sess );
    376376               
    377377                if( !jabber_write_packet( gc, reply ) )
Note: See TracChangeset for help on using the changeset viewer.