/roster note: do not display mdate when it's equal to cdate
authorMikael Berthe <mikael@lilotux.net>
Wed, 15 Nov 2006 22:47:35 +0100
changeset 1021 97f862e44d5d
parent 1020 60c94b697f61
child 1022 4c8d7b558e83
/roster note: do not display mdate when it's equal to cdate
mcabber/src/commands.c
--- 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);