summaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-06-05 19:36:37 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-06-05 19:39:25 +0300
commit7c12d73cd69458a9b1007e8d8c1d2c4ac18b4e4c (patch)
tree9cff67129735c022742f1234c56ea43fa8886d0b /protocols
parent713dcc5d66c3647a106d71799ac11893ca13efcb (diff)
minor fixes for Discord protocol
Diffstat (limited to 'protocols')
-rw-r--r--protocols/Discord/src/dispatch.cpp2
-rw-r--r--protocols/Discord/src/proto.cpp2
2 files changed, 1 insertions, 3 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp
index 3f04af06a3..e3ac110128 100644
--- a/protocols/Discord/src/dispatch.cpp
+++ b/protocols/Discord/src/dispatch.cpp
@@ -258,7 +258,7 @@ void CDiscordProto::OnCommandGuildDeleted(const JSONNode &pRoot)
/////////////////////////////////////////////////////////////////////////////////////////
// guild members
-void CDiscordProto::OnCommandGuildMemberAdded(const JSONNode &pRoot)
+void CDiscordProto::OnCommandGuildMemberAdded(const JSONNode&)
{
}
diff --git a/protocols/Discord/src/proto.cpp b/protocols/Discord/src/proto.cpp
index 70d666ac3e..68fb32d8a8 100644
--- a/protocols/Discord/src/proto.cpp
+++ b/protocols/Discord/src/proto.cpp
@@ -408,8 +408,6 @@ void CDiscordProto::MarkReadTimerProc(HWND hwnd, UINT, UINT_PTR id, DWORD)
{
CDiscordProto *ppro = (CDiscordProto*)(id - 1);
- JSONNode root; root.push_back(JSONNode("token", nullptr));
-
mir_cslock lck(ppro->csMarkReadQueue);
while (ppro->arMarkReadQueue.getCount()) {
CDiscordUser *pUser = ppro->arMarkReadQueue[0];