diff options
Diffstat (limited to 'plugins/Dropbox/src/dropbox_services.cpp')
-rw-r--r-- | plugins/Dropbox/src/dropbox_services.cpp | 6 |
1 files changed, 1 insertions, 5 deletions
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);
|