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/MinecraftDynmap/src/chat.cpp | |
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/MinecraftDynmap/src/chat.cpp')
-rw-r--r-- | protocols/MinecraftDynmap/src/chat.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/protocols/MinecraftDynmap/src/chat.cpp b/protocols/MinecraftDynmap/src/chat.cpp index 31112b00d2..dabf9b4741 100644 --- a/protocols/MinecraftDynmap/src/chat.cpp +++ b/protocols/MinecraftDynmap/src/chat.cpp @@ -49,8 +49,7 @@ void MinecraftDynmapProto::UpdateChat(const char *name, const char *message, con int MinecraftDynmapProto::OnChatEvent(WPARAM, LPARAM lParam) { GCHOOK *hook = reinterpret_cast<GCHOOK*>(lParam); - - if(strcmp(hook->pszModule,m_szModuleName)) + if(strcmp(hook->si->pszModule,m_szModuleName)) return 0; switch(hook->iType) { |