Changes in irc.c [5c577bd:4fe4be2]
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r5c577bd r4fe4be2 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 }880 876 else if( set_getint( irc, "debug" ) ) 881 877 { … … 945 941 if( irc->sendbuffer != NULL ) { 946 942 size = strlen( irc->sendbuffer ) + strlen( line ); 947 #ifdef FLOOD_SEND948 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 half954 * 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 #endif962 943 irc->sendbuffer = g_renew ( char, irc->sendbuffer, size + 1 ); 963 944 strcpy( ( irc->sendbuffer + strlen( irc->sendbuffer ) ), line );
Note: See TracChangeset
for help on using the changeset viewer.