1
0
mirror of https://github.com/Tha14/toxic.git synced 2025-07-01 13:26:44 +02:00

show name for default friend request message. also don't print key.

This commit is contained in:
Jfreegman
2013-11-17 23:14:27 -05:00
parent d69b82a7b4
commit 1ed6d83ed3
3 changed files with 13 additions and 16 deletions

View File

@ -217,14 +217,8 @@ static void prompt_onConnectionChange(ToxWindow *self, Tox *m, int friendnum , u
static void prompt_onFriendRequest(ToxWindow *self, uint8_t *key, uint8_t *data, uint16_t length)
{
wprintw(self->window, "\nFriend request from:\n");
int i;
wprintw(self->window, "\nFriend request with the message: %s\n", data);
for (i = 0; i < KEY_SIZE_BYTES; ++i) {
wprintw(self->window, "%02x", key[i] & 0xff);
}
wprintw(self->window, "\n\nWith the message: %s\n\n", data);
int n = add_friend_request(key);
if (n == -1) {