diff options
Diffstat (limited to 'plugins/NewEventNotify/src')
| -rw-r--r-- | plugins/NewEventNotify/src/main.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/NewEventNotify/src/main.cpp b/plugins/NewEventNotify/src/main.cpp index f711c2aa5e..dd4205ea2e 100644 --- a/plugins/NewEventNotify/src/main.cpp +++ b/plugins/NewEventNotify/src/main.cpp @@ -142,18 +142,11 @@ int CMPlugin::Load() /////////////////////////////////////////////////////////////////////////////////////////
// Check Window Message function
-// Took this snippet of code from "EventNotify" by micron-x, thx *g*
-// checks if the message-dialog window is already opened
-// return values:
-// 0 - No window found
-// 1 - Split-mode window found
-// 2 - Single-mode window found
-
int CheckMsgWnd(MCONTACT hContact)
{
MessageWindowData mwd;
if (!Srmm_GetWindowData(hContact, mwd))
- if (mwd.hwndWindow != nullptr && (mwd.uState & MSG_WINDOW_STATE_EXISTS))
+ if (mwd.hwndWindow != nullptr && (mwd.uState & MSG_WINDOW_STATE_FOCUS))
return 1;
return 0;
|
