diff options
author | George Hazan <ghazan@miranda.im> | 2020-01-25 14:24:53 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2020-01-25 14:24:53 +0300 |
commit | 9cca190bc3022311915eb1e95b3cc3bb89aed328 (patch) | |
tree | f0e27680e6dae1a0df044ae59ad86ccac59d0db7 /protocols/Twitter/src | |
parent | cf83f17e172253faf44737b8f4c27945e9f671e5 (diff) |
massive code cleaning:
- GCHOOK structure normalized (i.e. inlined SESSION_INFO fields replaced with a reference to SESSION_INFO);
- fake CMsgDialog declaration added to m_srmm_int.h, thus duplicated declarations in plugins aren't needed anymore
- other minor changes
Diffstat (limited to 'protocols/Twitter/src')
-rw-r--r-- | protocols/Twitter/src/chat.cpp | 2 | ||||
-rw-r--r-- | protocols/Twitter/src/stdafx.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/protocols/Twitter/src/chat.cpp b/protocols/Twitter/src/chat.cpp index bf7e1b6c36..a9e75c3392 100644 --- a/protocols/Twitter/src/chat.cpp +++ b/protocols/Twitter/src/chat.cpp @@ -54,7 +54,7 @@ void TwitterProto::UpdateChat(const twitter_user &update) int TwitterProto::OnChatOutgoing(WPARAM, LPARAM lParam)
{
GCHOOK *hook = reinterpret_cast<GCHOOK*>(lParam);
- if (mir_strcmp(hook->pszModule, m_szModuleName))
+ if (mir_strcmp(hook->si->pszModule, m_szModuleName))
return 0;
switch (hook->iType) {
diff --git a/protocols/Twitter/src/stdafx.h b/protocols/Twitter/src/stdafx.h index c543da1301..8317f41793 100644 --- a/protocols/Twitter/src/stdafx.h +++ b/protocols/Twitter/src/stdafx.h @@ -42,7 +42,7 @@ typedef std::basic_string<wchar_t> wstring; #include <newpluginapi.h>
#include <m_avatars.h>
#include <m_button.h>
-#include <m_chat.h>
+#include <m_chat_int.h>
#include <m_clistint.h>
#include <m_database.h>
#include <m_folders.h>
|