diff options
author | George Hazan <george.hazan@gmail.com> | 2024-03-20 22:06:26 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-03-20 22:06:26 +0300 |
commit | 335a494074e464e8f7f6e90f195bcd7339518a89 (patch) | |
tree | 6c45877f941ff83dea633a791c202f33edc87557 /plugins/NewStory/src/main.cpp | |
parent | 33aa78b58cd86f9b8e38032ff157ff614c23d73c (diff) |
initial smiley support
Diffstat (limited to 'plugins/NewStory/src/main.cpp')
-rw-r--r-- | plugins/NewStory/src/main.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/plugins/NewStory/src/main.cpp b/plugins/NewStory/src/main.cpp index 6ce6d2134c..82c6b31edd 100644 --- a/plugins/NewStory/src/main.cpp +++ b/plugins/NewStory/src/main.cpp @@ -136,9 +136,18 @@ static int evtTopToolbar(WPARAM, LPARAM) return 0;
}
+static int evtModuleLoaded(WPARAM, LPARAM)
+{
+ g_plugin.bHasSmileys = ServiceExists(MS_SMILEYADD_BATCHPARSE);
+ return 0;
+}
+
static int evtModulesLoaded(WPARAM, LPARAM)
{
HookEvent(ME_TTB_MODULELOADED, evtTopToolbar);
+ HookEvent(ME_SYSTEM_MODULELOAD, evtModuleLoaded);
+ HookEvent(ME_SYSTEM_MODULEUNLOAD, evtModuleLoaded);
+ evtModuleLoaded(0, 0);
InitFonts();
InitNewstoryControl();
|