diff options
author | George Hazan <george.hazan@gmail.com> | 2024-05-07 12:55:09 +0300 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2024-05-07 12:55:09 +0300 |
commit | 4ab93d52285bf072cea05ceac5333a1587c9980b (patch) | |
tree | f2a81f667f407a553eefed75a6490abe9b17a731 /plugins | |
parent | 3cac3160302a2936d04c87c1f7f03fc400449778 (diff) |
ME_DB_EVENT_SETJSON - separate event fired when only the JSON part of event is changed
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/Dbx_sqlite/src/dbevents.cpp | 2 | ||||
-rw-r--r-- | plugins/NewStory/src/main.cpp | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/plugins/Dbx_sqlite/src/dbevents.cpp b/plugins/Dbx_sqlite/src/dbevents.cpp index 0d41744ba3..38a3546098 100644 --- a/plugins/Dbx_sqlite/src/dbevents.cpp +++ b/plugins/Dbx_sqlite/src/dbevents.cpp @@ -378,7 +378,7 @@ int CDbxSQLite::SetEventJson(MEVENT hDbEvent, const char *szSetting, DBVARIANT * if (cc->IsSub())
hContact = cc->parentID;
- NotifyEventHooks(g_hevEventEdited, hContact, hDbEvent);
+ NotifyEventHooks(g_hevEventSetJson, hContact, hDbEvent);
}
return 0;
}
diff --git a/plugins/NewStory/src/main.cpp b/plugins/NewStory/src/main.cpp index a74019cffb..705dcccdb5 100644 --- a/plugins/NewStory/src/main.cpp +++ b/plugins/NewStory/src/main.cpp @@ -195,6 +195,7 @@ int CMPlugin::Load() HookEvent(ME_DB_EVENT_ADDED, evtEventAdded);
HookEvent(ME_DB_EVENT_DELETED, evtEventDeleted);
HookEvent(ME_DB_EVENT_EDITED, evtEventEdited);
+ HookEvent(ME_DB_EVENT_SETJSON, evtEventEdited);
HookEvent(ME_OPT_INITIALISE, OptionsInitialize);
HookEvent(ME_SYSTEM_MODULESLOADED, evtModulesLoaded);
HookEvent(ME_SYSTEM_PRESHUTDOWN, evtPreShutdown);
|