diff options
Diffstat (limited to 'plugins/Dropbox/src/dropbox_utils.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_utils.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
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) {
|