diff --git a/src/twc-friend-request.c b/src/twc-friend-request.c index d5d7f82..bc49389 100644 --- a/src/twc-friend-request.c +++ b/src/twc-friend-request.c @@ -67,7 +67,7 @@ twc_friend_request_add(struct t_twc_profile *profile, bool 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); twc_friend_request_remove(request); diff --git a/src/twc-tox-callbacks.c b/src/twc-tox-callbacks.c index 58bf5e8..ee2d9fc 100644 --- a/src/twc-tox-callbacks.c +++ b/src/twc-tox-callbacks.c @@ -211,7 +211,7 @@ twc_friend_request_callback(Tox *tox, const uint8_t *public_key, 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!", 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]; 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\"; " "accept it with \"/friend accept %d\"", weechat_prefix("network"), @@ -228,7 +228,7 @@ twc_friend_request_callback(Tox *tox, const uint8_t *public_key, if (rc == -2) { - weechat_printf(profile->buffer, + weechat_printf_date_tags(profile->buffer, 0, "notify_private", "%sFailed to save friend request, try manually " "accepting with /friend add", weechat_prefix("error"));