Changeset 9d6b229 for irc.c


Ignore:
Timestamp:
2006-01-14T20:34:10Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
0431ea1
Parents:
5c577bd (diff), 277674c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Imported changes from main tree.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc.c

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