- Timestamp:
- 2006-01-10T14:20:48Z (19 years ago)
- Branches:
- master
- Children:
- dd8d4c5
- Parents:
- 2d75b56
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r2d75b56 r4fe4be2 941 941 if( irc->sendbuffer != NULL ) { 942 942 size = strlen( irc->sendbuffer ) + strlen( line ); 943 #ifdef FLOOD_SEND944 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 half950 * 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 #endif958 943 irc->sendbuffer = g_renew ( char, irc->sendbuffer, size + 1 ); 959 944 strcpy( ( irc->sendbuffer + strlen( irc->sendbuffer ) ), line );
Note: See TracChangeset
for help on using the changeset viewer.