Changeset 5b9b2b6
- Timestamp:
- 2010-04-08T00:55:17Z (15 years ago)
- Branches:
- master
- Children:
- 92a9c68
- Parents:
- 37d84b3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
doc/user-guide/commands.xml
r37d84b3 r5b9b2b6 560 560 </bitlbee-setting> 561 561 562 <bitlbee-setting name="display_timestamps" type="boolean" scope="global"> 563 <default>true</default> 564 565 <description> 566 <para> 567 When incoming messages are old (i.e. offline messages and channel backlogs), BitlBee will prepend them with a timestamp. If you find them ugly or useless, you can use this setting to hide them. 568 </para> 569 </description> 570 </bitlbee-setting> 571 562 572 <bitlbee-setting name="handle_unknown" type="string" scope="global"> 563 573 <default>root</default> -
irc.c
r37d84b3 r5b9b2b6 186 186 s = set_add( &irc->set, "default_target", "root", NULL, irc ); 187 187 s = set_add( &irc->set, "display_namechanges", "false", set_eval_bool, irc ); 188 s = set_add( &irc->set, "display_timestamps", "true", set_eval_bool, irc ); 188 189 s = set_add( &irc->set, "handle_unknown", "root", NULL, irc ); 189 190 s = set_add( &irc->set, "lcnicks", "true", set_eval_bool, irc ); -
protocols/nogaim.c
r37d84b3 r5b9b2b6 724 724 { 725 725 irc_t *irc = ic->irc; 726 char *wrapped, *ts ;726 char *wrapped, *ts = NULL; 727 727 user_t *u; 728 728 … … 767 767 strip_html( msg ); 768 768 769 if( ( ts = format_timestamp( irc, sent_at ) ) ) 769 if( set_getbool( &ic->irc->set, "display_timestamps" ) && 770 ( ts = format_timestamp( irc, sent_at ) ) ) 770 771 { 771 772 char *new = g_strconcat( ts, msg, NULL ); … … 881 882 if( c && u ) 882 883 { 883 char *ts = format_timestamp( ic->irc, sent_at ); 884 char *ts = NULL; 885 if( set_getbool( &ic->irc->set, "display_timestamps" ) ) 886 ts = format_timestamp( ic->irc, sent_at ); 884 887 irc_privmsg( ic->irc, u, "PRIVMSG", c->channel, ts ? : "", wrapped ); 885 888 g_free( ts );
Note: See TracChangeset
for help on using the changeset viewer.