summaryrefslogtreecommitdiff
path: root/plugins/NewAwaySysMod
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/NewAwaySysMod')
-rw-r--r--plugins/NewAwaySysMod/src/MsgEventAdded.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/plugins/NewAwaySysMod/src/MsgEventAdded.cpp b/plugins/NewAwaySysMod/src/MsgEventAdded.cpp
index b8d0570b46..97b64d22e3 100644
--- a/plugins/NewAwaySysMod/src/MsgEventAdded.cpp
+++ b/plugins/NewAwaySysMod/src/MsgEventAdded.cpp
@@ -84,12 +84,8 @@ void __cdecl AutoreplyDelayThread(void *_ad)
int IsSRMsgWindowOpen(MCONTACT hContact, int DefaultRetVal)
{
- if (ServiceExists(MS_MSG_GETWINDOWDATA)) {
- MessageWindowData mwd;
- return !Srmm_GetWindowData(hContact, (LPARAM)&mwd) && mwd.hwndWindow;
- }
-
- return DefaultRetVal;
+ MessageWindowData mwd;
+ return !Srmm_GetWindowData(hContact, mwd) && mwd.hwndWindow;
}