Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r9c62a7c r94281ef  
    115115        set_add( irc, "auto_reconnect_delay", "300", set_eval_int );
    116116        set_add( irc, "buddy_sendbuffer", "false", set_eval_bool );
    117         set_add( irc, "buddy_sendbuffer_delay", "1", set_eval_int );
     117        set_add( irc, "buddy_sendbuffer_delay", "200", set_eval_int );
    118118        set_add( irc, "charset", "iso8859-1", set_eval_charset );
    119119        set_add( irc, "debug", "false", set_eval_bool );
     
    121121        set_add( irc, "display_namechanges", "false", set_eval_bool );
    122122        set_add( irc, "handle_unknown", "root", NULL );
    123         /* set_add( irc, "html", "nostrip", NULL ); */
    124123        set_add( irc, "lcnicks", "true", set_eval_bool );
    125124        set_add( irc, "ops", "both", set_eval_ops );
     
    127126        set_add( irc, "query_order", "lifo", NULL );
    128127        set_add( irc, "save_on_quit", "true", set_eval_bool );
     128        set_add( irc, "strip_html", "true", NULL );
    129129        set_add( irc, "to_char", ": ", set_eval_to_char );
    130130        set_add( irc, "typing_notice", "false", set_eval_bool );
     
    486486                        irc_reply( irc, 461, "%s :Need more parameters", cmd[0] );
    487487                }
    488                 else if( *cmd[1] == '#' )
     488                else if( *cmd[1] == '#' || *cmd[1] == '&' )
    489489                {
    490490                        if( cmd[2] )
     
    557557                else if( cmd[1] )
    558558                {
    559                         if( cmd[1][0] == '#' && cmd[1][1] )
     559                        if( ( cmd[1][0] == '#' || cmd[1][0] == '&' ) && cmd[1][1] )
    560560                        {
    561561                                user_t *u = user_find( irc, cmd[1] + 1 );
     
    931931}
    932932
    933 void irc_write_all( char *format, ... )
     933void irc_write_all( int now, char *format, ... )
    934934{
    935935        va_list params;
    936936        GSList *temp;   
    937 
     937       
    938938        va_start( params, format );
    939 
     939       
    940940        temp = irc_connection_list;
    941         while( temp!=NULL ) {
     941        while( temp != NULL )
     942        {
     943                irc_t *irc = temp->data;
     944               
     945                if( now )
     946                {
     947                        g_free( irc->sendbuffer );
     948                        irc->sendbuffer = g_strdup( "\r\n" );
     949                }
    942950                irc_vawrite( temp->data, format, params );
     951                if( now )
     952                {
     953                        bitlbee_io_current_client_write( irc->io_channel, G_IO_OUT, irc );
     954                }
    943955                temp = temp->next;
    944956        }
    945 
     957       
    946958        va_end( params );
    947959        return;
     
    10691081        irc_spawn( irc, u );
    10701082       
    1071         irc_usermsg( irc, "Welcome to the BitlBee gateway!\n\nIf you've never used BitlBee before, please do read the help information using the help command. Lots of FAQ's are answered there." );
     1083        irc_usermsg( irc, "Welcome to the BitlBee gateway!\n\nIf you've never used BitlBee before, please do read the help information using the \x02help\x02 command. Lots of FAQ's are answered there." );
    10721084       
    10731085        irc->status = USTATUS_LOGGED_IN;
     
    13131325        user_t *u = NULL;
    13141326       
    1315         if( *nick == '#' )
     1327        if( *nick == '#' || *nick == '&' )
    13161328        {
    13171329                if( !( c = conv_findchannel( nick ) ) )
     
    14281440        if( set_getint( irc, "buddy_sendbuffer" ) && set_getint( irc, "buddy_sendbuffer_delay" ) > 0 )
    14291441        {
     1442                int delay;
     1443               
    14301444                if( u->sendbuf_len > 0 && u->sendbuf_flags != flags)
    14311445                {
     
    14511465                strcat( u->sendbuf, "\n" );
    14521466               
     1467                delay = set_getint( irc, "buddy_sendbuffer_delay" );
     1468                if( delay <= 5 )
     1469                        delay *= 1000;
     1470               
    14531471                if( u->sendbuf_timer > 0 )
    14541472                        g_source_remove( u->sendbuf_timer );
    1455                 u->sendbuf_timer = g_timeout_add( set_getint( irc, "buddy_sendbuffer_delay" ) * 1000,
    1456                                                   buddy_send_handler_delayed, u );
     1473                u->sendbuf_timer = g_timeout_add( delay, buddy_send_handler_delayed, u );
    14571474               
    14581475                return( 1 );
Note: See TracChangeset for help on using the changeset viewer.