diff options
author | irungentoo <irungentoo@gmail.com> | 2013-08-05 15:58:30 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-08-05 15:58:30 -0700 |
commit | 853c70688d78cdcd27ea1b62cbb578d516ea9bca (patch) | |
tree | dac768e527f4b8f48971113a31beca3d50ab43b5 | |
parent | 8618662e29a49c9412e296a1d7c6749e944431e5 (diff) | |
parent | cb39cdbe5ec9002d2c52e6f4f938e1c370acbc9b (diff) |
Merge pull request #348 from stqism/master
Throws in a bell when a message is recieved, to warn to user
-rw-r--r-- | testing/toxic/chat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/testing/toxic/chat.c b/testing/toxic/chat.c index ff7a1667..ee68dc9f 100644 --- a/testing/toxic/chat.c +++ b/testing/toxic/chat.c | |||
@@ -32,7 +32,7 @@ void execute(ToxWindow* self, ChatContext* ctx, char* cmd); | |||
32 | static void chat_onMessage(ToxWindow* self, int num, uint8_t* msg, uint16_t len) { | 32 | static void chat_onMessage(ToxWindow* self, int num, uint8_t* msg, uint16_t len) { |
33 | ChatContext* ctx = (ChatContext*) self->x; | 33 | ChatContext* ctx = (ChatContext*) self->x; |
34 | uint8_t nick[MAX_NAME_LENGTH] = {0}; | 34 | uint8_t nick[MAX_NAME_LENGTH] = {0}; |
35 | 35 | ||
36 | time_t now; | 36 | time_t now; |
37 | time(&now); | 37 | time(&now); |
38 | struct tm * timeinfo; | 38 | struct tm * timeinfo; |
@@ -58,6 +58,7 @@ static void chat_onMessage(ToxWindow* self, int num, uint8_t* msg, uint16_t len) | |||
58 | wprintw(ctx->history, "%s\n", msg); | 58 | wprintw(ctx->history, "%s\n", msg); |
59 | 59 | ||
60 | self->blink = true; | 60 | self->blink = true; |
61 | beep(); | ||
61 | } | 62 | } |
62 | 63 | ||
63 | static void chat_onNickChange(ToxWindow* self, int num, uint8_t* nick, uint16_t len) { | 64 | static void chat_onNickChange(ToxWindow* self, int num, uint8_t* nick, uint16_t len) { |