diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-12 22:17:49 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-12 22:17:49 +0300 |
commit | b2f4af6c11168157fface019925b40ddbcd18a95 (patch) | |
tree | 059722eec479cc9b4f050807171c238565d8367d /plugins/Clist_nicer/src/contact.cpp | |
parent | b5f2f8c72db1b2eb876169b80083553491abb51d (diff) |
clist_nicer -> g_plugin
Diffstat (limited to 'plugins/Clist_nicer/src/contact.cpp')
-rw-r--r-- | plugins/Clist_nicer/src/contact.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/Clist_nicer/src/contact.cpp b/plugins/Clist_nicer/src/contact.cpp index 2fcabf7dcb..bd5bc77671 100644 --- a/plugins/Clist_nicer/src/contact.cpp +++ b/plugins/Clist_nicer/src/contact.cpp @@ -90,15 +90,15 @@ static void MF_CalcFrequency(MCONTACT hContact, DWORD dwCutoffDays, int doSleep) if (eventCount == 0) {
frequency = 0x7fffffff;
- db_set_dw(hContact, "CList", "mf_firstEvent", curTime - (dwCutoffDays * 86400));
+ g_plugin.setDword(hContact, "mf_firstEvent", curTime - (dwCutoffDays * 86400));
}
else {
frequency = (curTime - dbei.timestamp) / eventCount;
- db_set_dw(hContact, "CList", "mf_firstEvent", dbei.timestamp);
+ g_plugin.setDword(hContact, "mf_firstEvent", dbei.timestamp);
}
- db_set_dw(hContact, "CList", "mf_freq", frequency);
- db_set_dw(hContact, "CList", "mf_count", eventCount);
+ g_plugin.setDword(hContact, "mf_freq", frequency);
+ g_plugin.setDword(hContact, "mf_count", eventCount);
}
extern wchar_t g_ptszEventName[];
@@ -128,11 +128,11 @@ void MF_UpdateThread(LPVOID) void MF_InitCheck(void)
{
- BYTE bMsgFrequency = db_get_b(0, "CList", "fhistdata", 0);
+ BYTE bMsgFrequency = g_plugin.getByte("fhistdata", 0);
if (!bMsgFrequency) {
for (auto &hContact : Contacts())
MF_CalcFrequency(hContact, 100, 0);
- db_set_b(0, "CList", "fhistdata", 1);
+ g_plugin.setByte("fhistdata", 1);
}
}
|