summaryrefslogtreecommitdiff
path: root/protocols/GTalkExt
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-09-24 20:30:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-09-24 20:30:01 +0000
commitedc889e1188d25838da939e0ec49f057ec7ee99e (patch)
tree56cadfd1630f3ea5d4fa9ff7ac9876d3f4ad4847 /protocols/GTalkExt
parent2c554f869eee8d765505db837da3989271169f27 (diff)
ME_POPUP_FILTER - popup filtering event
git-svn-id: http://svn.miranda-ng.org/main/trunk@6218 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'protocols/GTalkExt')
-rw-r--r--protocols/GTalkExt/src/handlers.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/protocols/GTalkExt/src/handlers.cpp b/protocols/GTalkExt/src/handlers.cpp
index 9f8ff03aff..9004715531 100644
--- a/protocols/GTalkExt/src/handlers.cpp
+++ b/protocols/GTalkExt/src/handlers.cpp
@@ -73,6 +73,8 @@ static const LPCTSTR SETTING_TRUE = _T("true");
static const DWORD RESPONSE_TIMEOUT = 1000 * 60 * 60;
static const DWORD TIMER_INTERVAL = 1000 * 60 * 2;
+LRESULT CALLBACK PopupProc(HWND wnd, UINT msg, WPARAM wParam, LPARAM lParam);
+
XML_API xi = {0};
#include <tchar.h>
@@ -356,6 +358,17 @@ BOOL SendHandler(IJabberInterface *ji, HXML node, void *pUserData)
/////////////////////////////////////////////////////////////////////////////////////////
+int OnFilterPopup(WPARAM wParam, LPARAM lParam)
+{
+ HANDLE hContact = (HANDLE)wParam;
+ if ( !db_get_b(hContact, SHORT_PLUGIN_NAME, PSEUDOCONTACT_FLAG, 0))
+ return 0;
+
+ return (lParam == (LPARAM)&PopupProc);
+}
+
+/////////////////////////////////////////////////////////////////////////////////////////
+
IJabberInterface* IsGoogleAccount(LPCSTR szModuleName)
{
IJabberInterface *japi = getJabberApi(szModuleName);
@@ -393,6 +406,7 @@ int ModulesLoaded(WPARAM wParam, LPARAM lParam)
ji->Net()->AddSendHandler(SendHandler);
}
+ HookEvent(ME_POPUP_FILTER, OnFilterPopup);
HookOptionsInitialization();
return 0;
}