summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Kress <m-kress@m-kress.de>2013-08-03 16:26:23 +0200
committerMichael Kress <m-kress@m-kress.de>2013-08-03 16:26:23 +0200
commit1ae2bfbb7530d3bf856a60587efc3932b4438df6 (patch)
treeccf2912a36c213c5573b59b21d04e9c6371e4e74
parent2e476a06b69a4a688571333fa9ca8fc09771495c (diff)
added seconds to time stamp in toxic
-rw-r--r--testing/toxic/chat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c
index ddf59233..7cae1c0a 100644
--- a/testing/toxic/chat.c
+++ b/testing/toxic/chat.c
@@ -48,7 +48,7 @@ static void chat_onMessage(ToxWindow* self, int num, uint8_t* msg, uint16_t len)
48 fix_name(nick); 48 fix_name(nick);
49 49
50 wattron(ctx->history, COLOR_PAIR(2)); 50 wattron(ctx->history, COLOR_PAIR(2));
51 wprintw(ctx->history, "%02d:%02d ", timeinfo->tm_hour, timeinfo->tm_min); 51 wprintw(ctx->history, "%02d:%02d:%02d ", timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec);
52 wattron(ctx->history, COLOR_PAIR(4)); 52 wattron(ctx->history, COLOR_PAIR(4));
53 wprintw(ctx->history, "%s: ", nick); 53 wprintw(ctx->history, "%s: ", nick);
54 wattroff(ctx->history, COLOR_PAIR(4)); 54 wattroff(ctx->history, COLOR_PAIR(4));
@@ -94,7 +94,7 @@ static void chat_onKey(ToxWindow* self, int key) {
94 } 94 }
95 else if(key == '\n') { 95 else if(key == '\n') {
96 wattron(ctx->history, COLOR_PAIR(2)); 96 wattron(ctx->history, COLOR_PAIR(2));
97 wprintw(ctx->history, "%02d:%02d ", timeinfo->tm_hour, timeinfo->tm_min); 97 wprintw(ctx->history, "%02d:%02d:%02d ", timeinfo->tm_hour, timeinfo->tm_min, timeinfo->tm_sec);
98 wattron(ctx->history, COLOR_PAIR(1)); 98 wattron(ctx->history, COLOR_PAIR(1));
99 wprintw(ctx->history, "you: ", ctx->line); 99 wprintw(ctx->history, "you: ", ctx->line);
100 wattroff(ctx->history, COLOR_PAIR(1)); 100 wattroff(ctx->history, COLOR_PAIR(1));