diff options
author | Alexander Lantsev <aunsane@gmail.com> | 2015-05-31 12:00:47 +0000 |
---|---|---|
committer | Alexander Lantsev <aunsane@gmail.com> | 2015-05-31 12:00:47 +0000 |
commit | 6967fb68000cdf3431343ede41addcc5db2dfbae (patch) | |
tree | e20d0195adb6798a6ba11dc813731054270d9003 /protocols/Tox/src/tox_events.cpp | |
parent | 1ce3da1cca093143d9629bc46e221dd8be962e12 (diff) |
Tox: added support of assocmgr
git-svn-id: http://svn.miranda-ng.org/main/trunk@13933 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/Tox/src/tox_events.cpp')
-rw-r--r-- | protocols/Tox/src/tox_events.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/protocols/Tox/src/tox_events.cpp b/protocols/Tox/src/tox_events.cpp index 67b6ecfbfc..e667bd8bd6 100644 --- a/protocols/Tox/src/tox_events.cpp +++ b/protocols/Tox/src/tox_events.cpp @@ -7,6 +7,12 @@ int CToxProto::OnModulesLoaded(WPARAM, LPARAM) hProfileFolderPath = FoldersRegisterCustomPathT("Tox", Translate("Profiles folder"), MIRANDA_USERDATAT);
+ if (ServiceExists(MS_ASSOCMGR_ADDNEWURLTYPE))
+ {
+ CreateServiceFunction(MODULE "/ParseUri", CToxProto::ParseToxUri);
+ AssocMgr_AddNewUrlTypeT("tox:", TranslateT("Tox URI scheme"), g_hInstance, IDI_TOX, MODULE "/ParseUri", 0);
+ }
+
return 0;
}
|