From 999fdaa2662a1fe8937ec110232a78e87d79bfe7 Mon Sep 17 00:00:00 2001 From: Alexander Lantsev Date: Thu, 3 Mar 2016 14:47:53 +0000 Subject: Dropbox: - remove menu item and srmm button for intercepted accounts - removed limitation on single transfer window from menu item and srmm git-svn-id: http://svn.miranda-ng.org/main/trunk@16405 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Dropbox/src/dropbox_services.cpp | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'plugins/Dropbox/src/dropbox_services.cpp') diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp index 44a0cd5113..853db24e00 100644 --- a/plugins/Dropbox/src/dropbox_services.cpp +++ b/plugins/Dropbox/src/dropbox_services.cpp @@ -44,7 +44,6 @@ INT_PTR CDropbox::ProtoSendFile(WPARAM, LPARAM lParam) } FileTransferParam *ftp = new FileTransferParam(pccsd->hContact); - hTransferContact = 0; const TCHAR *description = (TCHAR*)pccsd->wParam; if (description && description[0]) @@ -70,10 +69,7 @@ INT_PTR CDropbox::ProtoSendFileInterceptor(WPARAM wParam, LPARAM lParam) CCSDATA *pccsd = (CCSDATA*)lParam; const char *proto = GetContactProto(pccsd->hContact); - const char *interceptedAccounts = db_get_sa(NULL, MODULE, "InterceptedAccounts"); - if (interceptedAccounts == NULL) - interceptedAccounts = db_get_sa(NULL, MODULE, "InterceptedProtos"); - if (interceptedAccounts == NULL || strstr(interceptedAccounts, proto) == NULL) + if (!IsAccountIntercepted(proto)) return CALLSERVICE_NOTFOUND; return ProtoSendFile(wParam, lParam); -- cgit v1.2.3