diff options
author | George Hazan <ghazan@miranda.im> | 2017-12-27 17:28:31 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2017-12-27 17:28:31 +0300 |
commit | c4d854d847fccf44fc2afbea6afb495fbe226b69 (patch) | |
tree | 261712bd183174db13b01973933a88a32e119092 | |
parent | e1a3a426a742028570baaee7430b2b5750734e4c (diff) |
auth system to take control last, not first, allowing spam filters to kill auth requests
-rw-r--r-- | src/mir_app/src/auth.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/mir_app/src/auth.cpp b/src/mir_app/src/auth.cpp index 9c582bcfc6..bb55fc3a5e 100644 --- a/src/mir_app/src/auth.cpp +++ b/src/mir_app/src/auth.cpp @@ -346,11 +346,16 @@ static int AuthEventAdded(WPARAM, LPARAM lParam) return 0; } +static void CALLBACK LaunchAuth() +{ + HookEvent(ME_DB_EVENT_ADDED, AuthEventAdded); +} + int LoadSendRecvAuthModule(void) { CreateServiceFunction(MS_AUTH_SHOWREQUEST, ShowReqWindow); CreateServiceFunction(MS_AUTH_SHOWADDED, ShowAddedWindow); - HookEvent(ME_DB_EVENT_ADDED, AuthEventAdded); + Miranda_WaitOnHandle(LaunchAuth); Skin_AddSound("AuthRequest", LPGENW("Alerts"), LPGENW("Authorization request")); Skin_AddSound("AddedEvent", LPGENW("Alerts"), LPGENW("Added event")); |