diff options
Diffstat (limited to 'testing/toxic/chat.c')
-rw-r--r-- | testing/toxic/chat.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c index 15d124bc..7262e722 100644 --- a/testing/toxic/chat.c +++ b/testing/toxic/chat.c | |||
@@ -34,7 +34,7 @@ void execute(ToxWindow* self, ChatContext* ctx, char* cmd); | |||
34 | static void chat_onMessage(ToxWindow* self, int num, uint8_t* msg, uint16_t len) { | 34 | static void chat_onMessage(ToxWindow* self, int num, uint8_t* msg, uint16_t len) { |
35 | ChatContext* ctx = (ChatContext*) self->x; | 35 | ChatContext* ctx = (ChatContext*) self->x; |
36 | uint8_t nick[MAX_NAME_LENGTH] = {0}; | 36 | uint8_t nick[MAX_NAME_LENGTH] = {0}; |
37 | 37 | ||
38 | time_t now; | 38 | time_t now; |
39 | time(&now); | 39 | time(&now); |
40 | struct tm * timeinfo; | 40 | struct tm * timeinfo; |
@@ -60,6 +60,8 @@ static void chat_onMessage(ToxWindow* self, int num, uint8_t* msg, uint16_t len) | |||
60 | wprintw(ctx->history, "%s\n", msg); | 60 | wprintw(ctx->history, "%s\n", msg); |
61 | 61 | ||
62 | self->blink = true; | 62 | self->blink = true; |
63 | beep(); | ||
64 | flash(); | ||
63 | } | 65 | } |
64 | 66 | ||
65 | static void chat_onNickChange(ToxWindow* self, int num, uint8_t* nick, uint16_t len) { | 67 | static void chat_onNickChange(ToxWindow* self, int num, uint8_t* nick, uint16_t len) { |
@@ -163,7 +165,7 @@ void execute(ToxWindow* self, ChatContext* ctx, char* cmd) | |||
163 | return; | 165 | return; |
164 | } | 166 | } |
165 | msg++; | 167 | msg++; |
166 | m_set_userstatus((uint8_t*) msg, strlen(msg)+1); | 168 | m_set_userstatus(USERSTATUS_KIND_RETAIN, (uint8_t*) msg, strlen(msg)+1); |
167 | wprintw(ctx->history, "Status set to: %s\n", msg); | 169 | wprintw(ctx->history, "Status set to: %s\n", msg); |
168 | } | 170 | } |
169 | else if (!strncmp(cmd, "/nick ", strlen("/nick "))) { | 171 | else if (!strncmp(cmd, "/nick ", strlen("/nick "))) { |