summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/utils.cpp
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2018-03-11 22:59:22 +0300
committeraunsane <aunsane@gmail.com>2018-03-11 22:59:22 +0300
commit8d0758286e5d0220647355a218a4c94f70591e6f (patch)
tree3c03ff78e0300fbd04309183592ba5505921ff2d /plugins/CloudFile/src/utils.cpp
parent5532fd4e1374c15c13e203a89b7cd060c7e15499 (diff)
CloudFile: Dropbox OAuth with miranda-ng redirect uri
Diffstat (limited to 'plugins/CloudFile/src/utils.cpp')
-rw-r--r--plugins/CloudFile/src/utils.cpp12
1 files changed, 12 insertions, 0 deletions
diff --git a/plugins/CloudFile/src/utils.cpp b/plugins/CloudFile/src/utils.cpp
index 24559827ef..b2a515fe94 100644
--- a/plugins/CloudFile/src/utils.cpp
+++ b/plugins/CloudFile/src/utils.cpp
@@ -95,3 +95,15 @@ void PasteToClipboard(const wchar_t *data)
CloseClipboard();
}
}
+
+void Report(MCONTACT hContact, const wchar_t *data)
+{
+ if (db_get_b(NULL, MODULE, "UrlAutoSend", 1))
+ SendToContact(hContact, data);
+
+ if (db_get_b(NULL, MODULE, "UrlPasteToMessageInputArea", 0))
+ PasteToInputArea(hContact, data);
+
+ if (db_get_b(NULL, MODULE, "UrlCopyToClipboard", 0))
+ PasteToClipboard(data);
+}