Changeset 5b9b2b6 for protocols/nogaim.c


Ignore:
Timestamp:
2010-04-08T00:55:17Z (11 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.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.