# HG changeset patch # User Sadrul Habib Chowdhury # Date 1247451462 0 # Node ID 37741237d1462eeaf23901f0d84d0e2c2b91d77e # Parent 1b92b9b51e2a5bb7dd446b2b7479480814d02096 Show the current time if the timestamp is zero. diff -r 1b92b9b51e2a -r 37741237d146 finch/gntconv.c --- a/finch/gntconv.c Sun Jul 12 22:55:24 2009 +0000 +++ b/finch/gntconv.c Mon Jul 13 02:17:42 2009 +0000 @@ -881,9 +881,12 @@ gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), "\n", GNT_TEXT_FLAG_NORMAL); /* Unnecessary to print the timestamp for delayed message */ - if (purple_prefs_get_bool("/finch/conversations/timestamps")) + if (purple_prefs_get_bool("/finch/conversations/timestamps")) { + if (!mtime) + time(&mtime); gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), purple_utf8_strftime("(%H:%M:%S)", localtime(&mtime)), gnt_color_pair(color_timestamp)); + } gnt_text_view_append_text_with_flags(GNT_TEXT_VIEW(ggconv->tv), " ", GNT_TEXT_FLAG_NORMAL);