friend request highlight

This commit is contained in:
Gordon Quad 2016-12-05 01:08:39 +00:00
parent b17f1a89c6
commit 5ec7423d19
2 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,7 @@ twc_friend_request_add(struct t_twc_profile *profile,
bool bool
twc_friend_request_accept(struct t_twc_friend_request *request) twc_friend_request_accept(struct t_twc_friend_request *request)
{ {
TOX_ERR_FRIEND_ADD err; TOX_ERR_FRIEND_ADD err = TOX_ERR_FRIEND_ADD_OK;
tox_friend_add_norequest(request->profile->tox, request->tox_id, &err); tox_friend_add_norequest(request->profile->tox, request->tox_id, &err);
twc_friend_request_remove(request); twc_friend_request_remove(request);

View File

@ -211,7 +211,7 @@ twc_friend_request_callback(Tox *tox, const uint8_t *public_key,
if (rc == -1) if (rc == -1)
{ {
weechat_printf(profile->buffer, weechat_printf_date_tags(profile->buffer, 0, "notify_private",
"%sReceived a friend request, but your friend request list is full!", "%sReceived a friend request, but your friend request list is full!",
weechat_prefix("warning")); weechat_prefix("warning"));
} }
@ -220,7 +220,7 @@ twc_friend_request_callback(Tox *tox, const uint8_t *public_key,
char hex_address[TOX_PUBLIC_KEY_SIZE * 2 + 1]; char hex_address[TOX_PUBLIC_KEY_SIZE * 2 + 1];
twc_bin2hex(public_key, TOX_PUBLIC_KEY_SIZE, hex_address); twc_bin2hex(public_key, TOX_PUBLIC_KEY_SIZE, hex_address);
weechat_printf(profile->buffer, weechat_printf_date_tags(profile->buffer, 0, "notify_private",
"%sReceived a friend request from %s with message \"%s\"; " "%sReceived a friend request from %s with message \"%s\"; "
"accept it with \"/friend accept %d\"", "accept it with \"/friend accept %d\"",
weechat_prefix("network"), weechat_prefix("network"),
@ -228,7 +228,7 @@ twc_friend_request_callback(Tox *tox, const uint8_t *public_key,
if (rc == -2) if (rc == -2)
{ {
weechat_printf(profile->buffer, weechat_printf_date_tags(profile->buffer, 0, "notify_private",
"%sFailed to save friend request, try manually " "%sFailed to save friend request, try manually "
"accepting with /friend add", "accepting with /friend add",
weechat_prefix("error")); weechat_prefix("error"));