comparison mcabber/src/commands.c @ 1021:97f862e44d5d

/roster note: do not display mdate when it's equal to cdate
author Mikael Berthe <mikael@lilotux.net>
date Wed, 15 Nov 2006 22:47:35 +0100
parents 60c94b697f61
children 4c8d7b558e83
comparison
equal deleted inserted replaced
1020:60c94b697f61 1021:97f862e44d5d
514 scr_WriteIncomingMessage(jid, msg, 0, msg_flag); 514 scr_WriteIncomingMessage(jid, msg, 0, msg_flag);
515 g_free(msg); 515 g_free(msg);
516 msg_flag = HBB_PREFIX_NONE; 516 msg_flag = HBB_PREFIX_NONE;
517 } 517 }
518 // If we have the modification date, display it 518 // If we have the modification date, display it
519 if (note->mdate) { 519 // unless it's the same as the creation date
520 if (note->mdate && note->mdate != note->cdate) {
520 strftime(tbuf, sizeof(tbuf), "%Y-%m-%d %H:%M:%S", 521 strftime(tbuf, sizeof(tbuf), "%Y-%m-%d %H:%M:%S",
521 localtime(&note->mdate)); 522 localtime(&note->mdate));
522 msg = g_strdup_printf("Note modified %s", tbuf); 523 msg = g_strdup_printf("Note modified %s", tbuf);
523 scr_WriteIncomingMessage(jid, msg, 0, msg_flag); 524 scr_WriteIncomingMessage(jid, msg, 0, msg_flag);
524 g_free(msg); 525 g_free(msg);