Changeset 5b9b2b6


Ignore:
Timestamp:
2010-04-08T00:55:17Z (9 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
92a9c68
Parents:
37d84b3
Message:

Added display_timestamps setting in case some people may not really like them.

Files:
3 edited

Legend:

Unmodified
Added
Removed
  • doc/user-guide/commands.xml

    r37d84b3 r5b9b2b6  
    560560        </bitlbee-setting>
    561561
     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
    562572        <bitlbee-setting name="handle_unknown" type="string" scope="global">
    563573                <default>root</default>
  • irc.c

    r37d84b3 r5b9b2b6  
    186186        s = set_add( &irc->set, "default_target", "root", NULL, irc );
    187187        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 );
    188189        s = set_add( &irc->set, "handle_unknown", "root", NULL, irc );
    189190        s = set_add( &irc->set, "lcnicks", "true", set_eval_bool, irc );
  • protocols/nogaim.c

    r37d84b3 r5b9b2b6  
    724724{
    725725        irc_t *irc = ic->irc;
    726         char *wrapped, *ts;
     726        char *wrapped, *ts = NULL;
    727727        user_t *u;
    728728       
     
    767767                strip_html( msg );
    768768       
    769         if( ( ts = format_timestamp( irc, sent_at ) ) )
     769        if( set_getbool( &ic->irc->set, "display_timestamps" ) &&
     770            ( ts = format_timestamp( irc, sent_at ) ) )
    770771        {
    771772                char *new = g_strconcat( ts, msg, NULL );
     
    881882        if( c && u )
    882883        {
    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 );
    884887                irc_privmsg( ic->irc, u, "PRIVMSG", c->channel, ts ? : "", wrapped );
    885888                g_free( ts );
Note: See TracChangeset for help on using the changeset viewer.