Don't notice about pending friend requests when there are none.
This commit is contained in:
parent
6cdb71e086
commit
3a6fc1d6f3
1 changed files with 6 additions and 4 deletions
|
@ -242,6 +242,8 @@ 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);
|
||||||
|
|
||||||
|
if (identity->friend_request_count > 0)
|
||||||
weechat_printf(identity->buffer,
|
weechat_printf(identity->buffer,
|
||||||
"%sYou have %d pending friend requests.",
|
"%sYou have %d pending friend requests.",
|
||||||
weechat_prefix("network"),
|
weechat_prefix("network"),
|
||||||
|
|
Loading…
Reference in a new issue