diff options
author | Tobias Weimer <wishmaster51@googlemail.com> | 2017-02-12 21:43:13 +0100 |
---|---|---|
committer | Tobias Weimer <wishmaster51@googlemail.com> | 2017-02-12 21:43:13 +0100 |
commit | 36c32a13878d3bd94e88bd9c764f1eadb05ea1ed (patch) | |
tree | 3407b05620aa32471e95499c2635d5f6de2ce776 /protocols/Discord/src/dispatch.cpp | |
parent | 646630b565d4fa2d95fd73143198b2d46deb937d (diff) | |
parent | 2651148625bef56f1fe32c638259d20abb001d68 (diff) |
Merge branch 'master' of https://github.com/miranda-ng/miranda-ng
Diffstat (limited to 'protocols/Discord/src/dispatch.cpp')
-rw-r--r-- | protocols/Discord/src/dispatch.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/protocols/Discord/src/dispatch.cpp b/protocols/Discord/src/dispatch.cpp index 1f4f9b3993..0da160b973 100644 --- a/protocols/Discord/src/dispatch.cpp +++ b/protocols/Discord/src/dispatch.cpp @@ -370,6 +370,14 @@ void CDiscordProto::OnCommandMessage(const JSONNode &pRoot) else { debugLogA("store a message into the group channel id %lld", channelId); + SESSION_INFO *si = pci->SM_FindSession(wszChannelId, m_szModuleName); + if (si == NULL) { + debugLogA("nessage to unknown channal %lld ignored", channelId); + return; + } + + ParseSpecialChars(si, wszText); + GCDEST gcd = { m_szModuleName, wszChannelId, GC_EVENT_MESSAGE }; GCEVENT gce = { &gcd }; gce.dwFlags = GCEF_ADDTOLOG; |