diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-02-24 18:19:08 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-02-24 18:19:08 +0000 |
commit | 5abf533213e126786cb859be514656a9fb3a514f (patch) | |
tree | cb2f17ff68b538fab3d8d3f4b715d1a8703206ba /protocols/Tox/src/tox_events.cpp | |
parent | 0a0b962e6d597e8f2e3c88e5b43d01b786ebc314 (diff) |
Tox: messages refactoring
git-svn-id: http://svn.miranda-ng.org/main/trunk@12261 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_events.cpp')
-rw-r--r-- | protocols/Tox/src/tox_events.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/Tox/src/tox_events.cpp b/protocols/Tox/src/tox_events.cpp index e372b9ee39..87c688c593 100644 --- a/protocols/Tox/src/tox_events.cpp +++ b/protocols/Tox/src/tox_events.cpp @@ -7,10 +7,9 @@ int CToxProto::OnContactDeleted(MCONTACT hContact, LPARAM) return 1;
}
- ToxBinAddress pubKey = ptrA(getStringA(hContact, TOX_SETTINGS_ID));
if (!isChatRoom(hContact))
{
- int32_t friendNumber = tox_get_friend_number(tox, pubKey);
+ int32_t friendNumber = GetToxFriendNumber(hContact);
if (friendNumber == TOX_ERROR || tox_del_friend(tox, friendNumber) == TOX_ERROR)
{
return 1;
|