Don't notice about pending friend requests when there are none.

This commit is contained in:
Håvard Pettersson 2014-09-18 19:13:52 +02:00
parent 6cdb71e086
commit 3a6fc1d6f3

View file

@ -242,10 +242,12 @@ tox_weechat_identity_connect(struct t_tox_weechat_identity *identity)
// initialize friend requests // initialize friend requests
tox_weechat_friend_request_init_identity(identity); tox_weechat_friend_request_init_identity(identity);
weechat_printf(identity->buffer,
"%sYou have %d pending friend requests.", if (identity->friend_request_count > 0)
weechat_prefix("network"), weechat_printf(identity->buffer,
identity->friend_request_count); "%sYou have %d pending friend requests.",
weechat_prefix("network"),
identity->friend_request_count);
// bootstrap DHT // bootstrap DHT
int max_bootstrap_nodes = 5; int max_bootstrap_nodes = 5;