changeset 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
files mcabber/src/commands.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mcabber/src/commands.c	Wed Nov 15 22:36:35 2006 +0100
+++ b/mcabber/src/commands.c	Wed Nov 15 22:47:35 2006 +0100
@@ -516,7 +516,8 @@
         msg_flag = HBB_PREFIX_NONE;
       }
       // If we have the modification date, display it
-      if (note->mdate) {
+      // unless it's the same as the creation date
+      if (note->mdate && note->mdate != note->cdate) {
         strftime(tbuf, sizeof(tbuf), "%Y-%m-%d %H:%M:%S",
                  localtime(&note->mdate));
         msg = g_strdup_printf("Note modified %s", tbuf);