Changeset 22d41a2
- Timestamp:
- 2005-11-18T19:10:20Z (19 years ago)
- Branches:
- master
- Children:
- d908e3a
- Parents:
- 517ecc4
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
r517ecc4 r22d41a2 931 931 } 932 932 933 void irc_write_all( char *format, ... )933 void irc_write_all( int now, char *format, ... ) 934 934 { 935 935 va_list params; 936 936 GSList *temp; 937 937 938 938 va_start( params, format ); 939 939 940 940 temp = irc_connection_list; 941 while( temp!=NULL ) { 941 while( temp != NULL ) 942 { 943 irc_t *irc = temp->data; 944 945 if( now ) 946 { 947 g_free( irc->sendbuffer ); 948 irc->sendbuffer = g_strdup( "\r\n" ); 949 } 942 950 irc_vawrite( temp->data, format, params ); 951 if( now ) 952 { 953 bitlbee_io_current_client_write( irc->io_channel, G_IO_OUT, irc ); 954 } 943 955 temp = temp->next; 944 956 } 945 957 946 958 va_end( params ); 947 959 return; -
irc.h
r517ecc4 r22d41a2 118 118 void irc_vawrite( irc_t *irc, char *format, va_list params ); 119 119 void irc_write( irc_t *irc, char *format, ... ); 120 void irc_write_all( char *format, ... );120 void irc_write_all( int now, char *format, ... ); 121 121 void irc_reply( irc_t *irc, int code, char *format, ... ); 122 122 G_MODULE_EXPORT int irc_usermsg( irc_t *irc, char *format, ... ); -
log.c
r517ecc4 r22d41a2 134 134 static void log_irc(int level, char *message) { 135 135 if(level==LOGLVL_ERROR) 136 irc_write_all( "ERROR :Error: %s", message);136 irc_write_all(1, "ERROR :Error: %s", message); 137 137 if(level==LOGLVL_WARNING) 138 irc_write_all( "ERROR :Warning: %s", message);138 irc_write_all(0, "ERROR :Warning: %s", message); 139 139 if(level==LOGLVL_INFO) 140 irc_write_all( "ERROR :Informational: %s", message);140 irc_write_all(0, "ERROR :Informational: %s", message); 141 141 #ifdef DEBUG 142 142 if(level==LOGLVL_DEBUG) 143 irc_write_all( "ERROR :Debug: %s", message);143 irc_write_all(0, "ERROR :Debug: %s", message); 144 144 #endif 145 145
Note: See TracChangeset
for help on using the changeset viewer.