summaryrefslogtreecommitdiff
path: root/plugins/Dropbox/src/dropbox_services.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Dropbox/src/dropbox_services.cpp')
-rw-r--r--plugins/Dropbox/src/dropbox_services.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/Dropbox/src/dropbox_services.cpp b/plugins/Dropbox/src/dropbox_services.cpp
index d679059c43..92f7a5abae 100644
--- a/plugins/Dropbox/src/dropbox_services.cpp
+++ b/plugins/Dropbox/src/dropbox_services.cpp
@@ -74,6 +74,18 @@ INT_PTR CDropbox::ProtoSendFile(WPARAM, LPARAM lParam)
return fileId;
}
+INT_PTR CDropbox::ProtoSendFileInterceptor(WPARAM wParam, LPARAM lParam)
+{
+ CCSDATA *pccsd = (CCSDATA*)lParam;
+
+ const char *proto = GetContactProto(pccsd->hContact);
+ const char *interceptedProtos = db_get_sa(NULL, MODULE, "InterceptedProtos");
+ if (interceptedProtos == NULL || strstr(interceptedProtos, proto) == NULL)
+ return CALLSERVICE_NOTFOUND;
+
+ return ProtoSendFile(wParam, lParam);
+}
+
INT_PTR CDropbox::ProtoCancelFile(WPARAM, LPARAM lParam)
{
CCSDATA *pccsd = (CCSDATA*)lParam;