856 |
seconds = time (NULL); |
seconds = time (NULL); |
857 |
date_tmp = localtime (&seconds); |
date_tmp = localtime (&seconds); |
858 |
|
|
859 |
pos = buf2 - 1; |
pos = buf2; |
860 |
while (pos) |
while (pos) |
861 |
{ |
{ |
862 |
if ((!buffer->last_line) || (buffer->line_complete)) |
if ((!buffer->last_line) || (buffer->line_complete)) |
923 |
} |
} |
924 |
gui_add_to_line (buffer, MSG_TYPE_TIME, " "); |
gui_add_to_line (buffer, MSG_TYPE_TIME, " "); |
925 |
} |
} |
926 |
gui_add_to_line (buffer, type, pos + 1); |
gui_add_to_line (buffer, type, pos); |
927 |
pos = strchr (pos + 1, '\n'); |
pos = strchr (pos, '\n'); |
928 |
if (pos && !pos[1]) |
if (pos) |
929 |
pos = NULL; |
{ |
930 |
|
if (!pos[1]) |
931 |
|
pos = NULL; |
932 |
|
else |
933 |
|
pos++; |
934 |
|
} |
935 |
} |
} |
936 |
} |
} |
937 |
else |
else |