diff options
author | George Hazan <ghazan@miranda.im> | 2023-04-23 18:48:34 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2023-04-23 18:48:34 +0300 |
commit | dbca94ca6e16a5bc270332e09ea3703bb46ceeaf (patch) | |
tree | d9de6f4ef565dc23561cffe0617d55dfafd5069f /plugins/TabSRMM | |
parent | 2fb2f4e0edf9c01ff5ec23429e79e2572e5429be (diff) |
DbEventIsShown is added to g_chatApi to allow the core to filter group chat events too
Diffstat (limited to 'plugins/TabSRMM')
-rw-r--r-- | plugins/TabSRMM/src/chat_main.cpp | 3 | ||||
-rw-r--r-- | plugins/TabSRMM/src/msglog.cpp | 2 |
2 files changed, 3 insertions, 2 deletions
diff --git a/plugins/TabSRMM/src/chat_main.cpp b/plugins/TabSRMM/src/chat_main.cpp index 1a4a20082a..53e19d35a1 100644 --- a/plugins/TabSRMM/src/chat_main.cpp +++ b/plugins/TabSRMM/src/chat_main.cpp @@ -365,9 +365,10 @@ int Chat_Load() g_chatApi.OnCreateSession = OnCreateSession;
g_chatApi.OnReplaceSession = OnReplaceSession;
- g_chatApi.OnChangeNick = OnChangeNick;
g_chatApi.ShowRoom = stubShowRoom;
+ g_chatApi.OnChangeNick = OnChangeNick;
g_chatApi.OnLoadSettings = OnLoadSettings;
+ g_chatApi.DbEventIsShown = DbEventIsShown;
Srmm_CreateHotkey(TABSRMM_HK_SECTION_GENERIC, LPGEN("Send message"));
diff --git a/plugins/TabSRMM/src/msglog.cpp b/plugins/TabSRMM/src/msglog.cpp index 04045292b2..49743a5544 100644 --- a/plugins/TabSRMM/src/msglog.cpp +++ b/plugins/TabSRMM/src/msglog.cpp @@ -327,7 +327,7 @@ static wchar_t* Template_MakeRelativeDate(HANDLE hTimeZone, time_t check, wchar_ bool DbEventIsShown(const DB::EventInfo &dbei)
{
if (!IsCustomEvent(dbei.eventType) || dbei.isSrmm())
- return 1;
+ return true;
return IsStatusEvent(dbei.eventType);
}
|