From 4d30ea7bc3eadfa252766c559feb7a00d006dcc7 Mon Sep 17 00:00:00 2001 From: dartraiden Date: Fri, 1 Dec 2017 03:26:11 +0300 Subject: remove Tlen completely --- plugins/AddContactPlus/src/addcontact.cpp | 24 ++---------------------- 1 file changed, 2 insertions(+), 22 deletions(-) (limited to 'plugins/AddContactPlus/src') diff --git a/plugins/AddContactPlus/src/addcontact.cpp b/plugins/AddContactPlus/src/addcontact.cpp index 0337c30753..85bab9265a 100644 --- a/plugins/AddContactPlus/src/addcontact.cpp +++ b/plugins/AddContactPlus/src/addcontact.cpp @@ -31,12 +31,6 @@ struct AddDialogParam : public MZeroedObject PROTOSEARCHRESULT *psr; }; -// Tlen protocol -struct TLEN_SEARCH_RESULT : public PROTOSEARCHRESULT -{ - char jid[256]; -}; - void AddContactDlgOpts(HWND hdlg, const char* szProto, BOOL bAuthOptsOnly = FALSE) { DWORD flags = (szProto) ? CallProtoService(szProto, PS_GETCAPS, PFLAGNUM_4, 0) : 0; @@ -249,22 +243,8 @@ INT_PTR CALLBACK AddContactDlgProc(HWND hdlg, UINT msg, WPARAM wparam, LPARAM) } PROTOSEARCHRESULT *psr; - if (strstr(acs->proto, "TLEN")) { // Tlen protocol - if (wcschr(szUserId, '@') == nullptr) { - MessageBox(nullptr, - TranslateT("The contact cannot be added to your contact list. Please make sure the contact ID is entered correctly."), - TranslateT("Add contact"), MB_OK | MB_ICONWARNING | MB_SETFOREGROUND | MB_TOPMOST); - break; - } - psr = (PROTOSEARCHRESULT*)mir_calloc(sizeof(TLEN_SEARCH_RESULT)); - psr->cbSize = sizeof(TLEN_SEARCH_RESULT); - mir_snprintf(((TLEN_SEARCH_RESULT*)psr)->jid, _countof(((TLEN_SEARCH_RESULT*)psr)->jid), "%S", szUserId); - } - else { - psr = (PROTOSEARCHRESULT*)mir_calloc(sizeof(PROTOSEARCHRESULT)); - psr->cbSize = sizeof(PROTOSEARCHRESULT); - } - + psr = (PROTOSEARCHRESULT*)mir_calloc(sizeof(PROTOSEARCHRESULT)); + psr->cbSize = sizeof(PROTOSEARCHRESULT); psr->flags = PSR_UNICODE; psr->id.w = mir_wstrdup(szUserId); acs->psr = psr; -- cgit v1.2.3