Changes in irc.c [4fe4be2:5c577bd]
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r4fe4be2 r5c577bd 874 874 irc_privmsg( irc, u, "NOTICE", irc->nick, "COMPLETIONS ", "END" ); 875 875 } 876 else if( g_strcasecmp( cmd[0], "DIE" ) == 0 ) 877 { 878 printf( "%d %d\n", global.listen_socket, write( global.listen_socket, "DIE\r\n", 5 ) ); 879 } 876 880 else if( set_getint( irc, "debug" ) ) 877 881 { … … 941 945 if( irc->sendbuffer != NULL ) { 942 946 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 943 962 irc->sendbuffer = g_renew ( char, irc->sendbuffer, size + 1 ); 944 963 strcpy( ( irc->sendbuffer + strlen( irc->sendbuffer ) ), line );
Note: See TracChangeset
for help on using the changeset viewer.