- Timestamp:
- 2005-11-19T15:17:03Z (19 years ago)
- Branches:
- master
- Children:
- 9c8ae50, b20b32f
- Parents:
- c998255 (diff), 94281ef (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. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
irc.c
rc998255 r2cdd8ce 115 115 set_add( irc, "auto_reconnect_delay", "300", set_eval_int ); 116 116 set_add( irc, "buddy_sendbuffer", "false", set_eval_bool ); 117 set_add( irc, "buddy_sendbuffer_delay", " 1", set_eval_int );117 set_add( irc, "buddy_sendbuffer_delay", "200", set_eval_int ); 118 118 set_add( irc, "charset", "iso8859-1", set_eval_charset ); 119 119 set_add( irc, "debug", "false", set_eval_bool ); … … 121 121 set_add( irc, "display_namechanges", "false", set_eval_bool ); 122 122 set_add( irc, "handle_unknown", "root", NULL ); 123 /* set_add( irc, "html", "nostrip", NULL ); */124 123 set_add( irc, "lcnicks", "true", set_eval_bool ); 125 124 set_add( irc, "ops", "both", set_eval_ops ); … … 127 126 set_add( irc, "query_order", "lifo", NULL ); 128 127 set_add( irc, "save_on_quit", "true", set_eval_bool ); 128 set_add( irc, "strip_html", "true", NULL ); 129 129 set_add( irc, "to_char", ": ", set_eval_to_char ); 130 130 set_add( irc, "typing_notice", "false", set_eval_bool ); … … 486 486 irc_reply( irc, 461, "%s :Need more parameters", cmd[0] ); 487 487 } 488 else if( *cmd[1] == '#' )488 else if( *cmd[1] == '#' || *cmd[1] == '&' ) 489 489 { 490 490 if( cmd[2] ) … … 557 557 else if( cmd[1] ) 558 558 { 559 if( cmd[1][0] == '#'&& cmd[1][1] )559 if( ( cmd[1][0] == '#' || cmd[1][0] == '&' ) && cmd[1][1] ) 560 560 { 561 561 user_t *u = user_find( irc, cmd[1] + 1 ); … … 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; … … 1069 1081 irc_spawn( irc, u ); 1070 1082 1071 irc_usermsg( irc, "Welcome to the BitlBee gateway!\n\nIf you've never used BitlBee before, please do read the help information using the helpcommand. Lots of FAQ's are answered there." );1083 irc_usermsg( irc, "Welcome to the BitlBee gateway!\n\nIf you've never used BitlBee before, please do read the help information using the \x02help\x02 command. Lots of FAQ's are answered there." ); 1072 1084 1073 1085 irc->status = USTATUS_LOGGED_IN; … … 1313 1325 user_t *u = NULL; 1314 1326 1315 if( *nick == '#' )1327 if( *nick == '#' || *nick == '&' ) 1316 1328 { 1317 1329 if( !( c = conv_findchannel( nick ) ) ) … … 1428 1440 if( set_getint( irc, "buddy_sendbuffer" ) && set_getint( irc, "buddy_sendbuffer_delay" ) > 0 ) 1429 1441 { 1442 int delay; 1443 1430 1444 if( u->sendbuf_len > 0 && u->sendbuf_flags != flags) 1431 1445 { … … 1451 1465 strcat( u->sendbuf, "\n" ); 1452 1466 1467 delay = set_getint( irc, "buddy_sendbuffer_delay" ); 1468 if( delay <= 5 ) 1469 delay *= 1000; 1470 1453 1471 if( u->sendbuf_timer > 0 ) 1454 1472 g_source_remove( u->sendbuf_timer ); 1455 u->sendbuf_timer = g_timeout_add( set_getint( irc, "buddy_sendbuffer_delay" ) * 1000, 1456 buddy_send_handler_delayed, u ); 1473 u->sendbuf_timer = g_timeout_add( delay, buddy_send_handler_delayed, u ); 1457 1474 1458 1475 return( 1 );
Note: See TracChangeset
for help on using the changeset viewer.