Changeset 4fe4be2 for irc.c


Ignore:
Timestamp:
2006-01-10T14:20:48Z (19 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
dd8d4c5
Parents:
2d75b56
Message:

Removed send-flood protection code completely.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

    r2d75b56 r4fe4be2  
    941941        if( irc->sendbuffer != NULL ) {
    942942                size = strlen( irc->sendbuffer ) + strlen( line );
    943 #ifdef FLOOD_SEND
    944                 if( size > FLOOD_SEND_MAXBUFFER ) {
    945                         /* Die flooder, die! >:) */
    946 
    947                         g_free(irc->sendbuffer);
    948                        
    949                         /* We need the \r\n at the start because else we might append our string to a half
    950                          * sent line. A bit hackish, but it works.
    951                          */
    952                         irc->sendbuffer = g_strdup( "\r\nERROR :Sendq Exceeded\r\n" );
    953                         irc->quit = 1;
    954                        
    955                         return;
    956                 }
    957 #endif
    958943                irc->sendbuffer = g_renew ( char, irc->sendbuffer, size + 1 );
    959944                strcpy( ( irc->sendbuffer + strlen( irc->sendbuffer ) ), line );
Note: See TracChangeset for help on using the changeset viewer.