diff options
Diffstat (limited to 'protocols/Tox')
-rw-r--r-- | protocols/Tox/src/tox_search.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/protocols/Tox/src/tox_search.cpp b/protocols/Tox/src/tox_search.cpp index 6ceea8d07f..22cf2e78f9 100644 --- a/protocols/Tox/src/tox_search.cpp +++ b/protocols/Tox/src/tox_search.cpp @@ -45,14 +45,6 @@ void CToxProto::SearchByNameAsync(void *arg) {
std::string id = DataToHexString(address);
- if (IsMe(id))
- {
- ShowNotification(TranslateT("You cannot add yourself to friend list"), 0);
- ProtoBroadcastAck(NULL, ACKTYPE_SEARCH, ACKRESULT_FAILED, (HANDLE)1, 0);
- mir_free(arg);
- return;
- }
-
PROTOSEARCHRESULT psr = { sizeof(PROTOSEARCHRESULT) };
psr.flags = PSR_TCHAR;
psr.id = mir_a2t(id.c_str());
|