Changeset 672 for trunk/c2s/main.c

Show
Ignore:
Timestamp:
15/08/08 19:50:22 (5 months ago)
Author:
smoku
Message:

Implemented logging of compressed conection established. Closes #243

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/c2s/main.c

    r662 r672  
    692692#endif 
    693693 
     694#ifdef HAVE_LIBZ 
     695    /* get compression up and running */ 
     696    if(c2s->compression) 
     697        sx_env_plugin(c2s->sx_env, sx_compress_init); 
     698#endif 
     699 
     700#ifdef ENABLE_EXPERIMENTAL 
     701    /* get stanza ack up */ 
     702    sx_env_plugin(c2s->sx_env, sx_ack_init); 
     703 
     704    /* and user IP address plugin */ 
     705    sx_env_plugin(c2s->sx_env, sx_address_init); 
     706#endif 
     707 
    694708    /* get sasl online */ 
    695709    c2s->sx_sasl = sx_env_plugin(c2s->sx_env, sx_sasl_init, "xmpp", _c2s_sx_sasl_callback, (void *) c2s); 
     
    698712        exit(1); 
    699713    } 
    700  
    701 #ifdef HAVE_LIBZ 
    702     /* get compression up and running */ 
    703     if(c2s->compression) 
    704         sx_env_plugin(c2s->sx_env, sx_compress_init); 
    705 #endif 
    706  
    707 #ifdef ENABLE_EXPERIMENTAL 
    708     /* get stanza ack up */ 
    709     sx_env_plugin(c2s->sx_env, sx_ack_init); 
    710  
    711     /* and user IP address plugin */ 
    712     sx_env_plugin(c2s->sx_env, sx_address_init); 
    713 #endif 
    714714 
    715715    /* get bind up */