Changeset 21c87a7 for irc_im.c


Ignore:
Timestamp:
2010-04-14T09:27:50Z (14 years ago)
Author:
Wilmer van der Gaast <wilmer@…>
Branches:
master
Children:
d33679e
Parents:
81186cab (diff), 156bbd7 (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.
Message:

Merging loads of stuff from mainline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r81186cab r21c87a7  
    9999        irc_user_t *iu = (irc_user_t *) bu->ui_data;
    100100        char *dst, *prefix = NULL;
    101         char *wrapped;
     101        char *wrapped, *ts = NULL;
     102       
     103        if( sent_at > 0 && set_getbool( &irc->b->set, "display_timestamps" ) )
     104                ts = irc_format_timestamp( irc, sent_at );
    102105       
    103106        if( iu->flags & IRC_USER_PRIVATE )
    104107        {
    105108                dst = irc->user->nick;
     109                prefix = ts;
     110                ts = NULL;
    106111        }
    107112        else
    108113        {
    109114                dst = ic->name;
    110                 prefix = g_strdup_printf( "%s%s", irc->user->nick, set_getstr( &bee->set, "to_char" ) );
     115                prefix = g_strdup_printf( "%s%s%s", irc->user->nick, set_getstr( &bee->set, "to_char" ), ts );
    111116        }
    112117       
     
    116121        g_free( wrapped );
    117122        g_free( prefix );
     123        g_free( ts );
    118124       
    119125        return TRUE;
Note: See TracChangeset for help on using the changeset viewer.