Changeset fa1bc1d


Ignore:
Timestamp:
2018-07-31T04:57:16Z (16 months ago)
Author:
dequis <dx@…>
Branches:
master
Children:
3b0c1c3
Parents:
9767d03
Message:

Hide timestamps from the message body if server-time is enabled

File:
1 edited

Legend:

Unmodified
Added
Removed
  • irc_im.c

    r9767d03 rfa1bc1d  
    232232        GSList *l;
    233233
    234         if (sent_at > 0 && set_getbool(&irc->b->set, "display_timestamps")) {
     234        if (sent_at > 0 &&
     235            !(irc->caps & CAP_SERVER_TIME) &&
     236            set_getbool(&irc->b->set, "display_timestamps")) {
    235237                ts = irc_format_timestamp(irc, sent_at);
    236238        }
     
    702704        }
    703705
    704         if (sent_at > 0 && set_getbool(&bee->set, "display_timestamps")) {
     706        if (sent_at > 0 &&
     707            !(irc->caps & CAP_SERVER_TIME) &&
     708            set_getbool(&bee->set, "display_timestamps")) {
    705709                ts = irc_format_timestamp(irc, sent_at);
    706710        }
Note: See TracChangeset for help on using the changeset viewer.