summaryrefslogtreecommitdiff
path: root/protocols/Discord/src/main.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2024-06-07 16:28:48 +0300
committerGeorge Hazan <george.hazan@gmail.com>2024-06-07 16:28:48 +0300
commitac3929126ffd550079c30c2ae120d640aaa0f25c (patch)
tree911f49df9b5d102eacce2d4d9a3de193c8c27587 /protocols/Discord/src/main.cpp
parent6ac39390bcfe21275c29721fff0c78158c14abb2 (diff)
Discord to be packed with libsodium
Diffstat (limited to 'protocols/Discord/src/main.cpp')
-rw-r--r--protocols/Discord/src/main.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/protocols/Discord/src/main.cpp b/protocols/Discord/src/main.cpp
index 17a10bf78e..023a7b7925 100644
--- a/protocols/Discord/src/main.cpp
+++ b/protocols/Discord/src/main.cpp
@@ -72,6 +72,11 @@ static int OnModulesLoaded(WPARAM, LPARAM)
int CMPlugin::Load()
{
+ if (sodium_init() < 0) {
+ Netlib_Log(0, "libsodium cannot be initialized");
+ bVoiceEnabled = false;
+ }
+
HookEvent(ME_SYSTEM_MODULESLOADED, &OnModulesLoaded);
g_plugin.registerIcon("Protocols/Discord", g_iconList);