summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clistmod.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern/src/modern_clistmod.cpp')
-rw-r--r--plugins/Clist_modern/src/modern_clistmod.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/plugins/Clist_modern/src/modern_clistmod.cpp b/plugins/Clist_modern/src/modern_clistmod.cpp
index 4384d36ffa..3a102bd281 100644
--- a/plugins/Clist_modern/src/modern_clistmod.cpp
+++ b/plugins/Clist_modern/src/modern_clistmod.cpp
@@ -34,6 +34,8 @@ pfnMyMonitorFromPoint MyMonitorFromPoint = NULL;
pfnMyMonitorFromWindow MyMonitorFromWindow = NULL;
pfnMyGetMonitorInfo MyGetMonitorInfo = NULL;
+int OnLoadLangpack(WPARAM, LPARAM);
+
static HANDLE hookSystemShutdown_CListMod = NULL;
HANDLE hookOptInitialise_CList = NULL,
hookOptInitialise_Skin = NULL,
@@ -225,6 +227,10 @@ HRESULT PreLoadContactListModule()
//clist interface is empty yet so handles should check
CreateServiceFunction(MS_CLIST_GETCONTACTICON, GetContactIcon);
CreateServiceFunction(MS_CLUI_GETCAPS, GetCapsService);
+
+ // catch langpack events
+ HookEvent(ME_LANGPACK_CHANGED, OnLoadLangpack);
+ OnLoadLangpack(0, 0);
return S_OK;
}