Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

suppose timestamp 0 as current time

issue #97
  • Loading branch information...
commit 05d1dbb15d0f53dee95eea74fda52a6899b8501a 1 parent 312a789
@youknowone youknowone authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 Mac/Sources/XAChatTextView.m
View
4 Mac/Sources/XAChatTextView.m
@@ -296,6 +296,10 @@ - (void)printLine:(char *)text length:(int)len stamp:(time_t)stamp
char buff [128]; // 128 = large enough for timestamp
char *prepend = buff;
+ if (stamp == 0) {
+ stamp = time(NULL);
+ }
+
if (prefs.timestamp)
{
prepend += strftime (buff, sizeof (buff), prefs.stamp_format, localtime (&stamp));
Please sign in to comment.
Something went wrong with that request. Please try again.