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_utils.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'plugins/Dropbox/src/dropbox_utils.cpp') diff --git a/plugins/Dropbox/src/dropbox_utils.cpp b/plugins/Dropbox/src/dropbox_utils.cpp index ee6fc73a60..b007d88245 100644 --- a/plugins/Dropbox/src/dropbox_utils.cpp +++ b/plugins/Dropbox/src/dropbox_utils.cpp @@ -21,6 +21,14 @@ char* CDropbox::PreparePath(const TCHAR *oldPath, char *newPath) return PreparePath(ptrA(mir_utf8encodeW(oldPath)), newPath); } +bool CDropbox::IsAccountIntercepted(const char *module) +{ + const char *interceptedAccounts = db_get_sa(NULL, MODULE, "InterceptedAccounts"); + if (interceptedAccounts == NULL) + interceptedAccounts = db_get_sa(NULL, MODULE, "InterceptedProtos"); + return interceptedAccounts && strstr(interceptedAccounts, module); +} + char* CDropbox::HttpStatusToText(HTTP_STATUS status) { switch (status) { -- cgit v1.2.3