summaryrefslogtreecommitdiff
path: root/protocols/Discord/src
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2025-04-03 22:12:24 +0300
committerGeorge Hazan <george.hazan@gmail.com>2025-04-03 22:13:27 +0300
commit0f361039b66b42b704b6b3601a1c3a88e317cc7d (patch)
treec37356208e886cfa48068329cc4f38d11ad60d36 /protocols/Discord/src
parent5e12d2bc61726babb410af007a3f5b73228eb4c0 (diff)
code cleaning
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r--protocols/Discord/src/gateway.cpp4
-rw-r--r--protocols/Discord/src/voice_client.cpp2
2 files changed, 1 insertions, 5 deletions
diff --git a/protocols/Discord/src/gateway.cpp b/protocols/Discord/src/gateway.cpp
index c038234aec..e3bf1b307c 100644
--- a/protocols/Discord/src/gateway.cpp
+++ b/protocols/Discord/src/gateway.cpp
@@ -25,9 +25,7 @@ bool CDiscordProto::GatewaySend(const JSONNode &pRoot)
if (!m_bConnected)
return false;
- json_string szText = pRoot.write();
- debugLogA("Gateway send: %s", szText.c_str());
- m_ws.sendText(szText.c_str());
+ m_ws.sendText(pRoot.write().c_str());
return true;
}
diff --git a/protocols/Discord/src/voice_client.cpp b/protocols/Discord/src/voice_client.cpp
index 1e20a93723..99d7668d74 100644
--- a/protocols/Discord/src/voice_client.cpp
+++ b/protocols/Discord/src/voice_client.cpp
@@ -61,9 +61,7 @@ void CDiscordVoiceCall::write(int op, JSONNode &d)
JSONNode payload;
payload << INT_PARAM("op", op) << d;
-
auto json = payload.write();
- ppro->debugLogA("Voice JSON sent: %s", json.c_str());
mir_cslock lck(m_cs);
m_ws->sendText(json.c_str());