summaryrefslogtreecommitdiff
path: root/plugins/GmailNotifier/src/notify.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-14 18:24:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-14 18:24:56 +0300
commit68d6271552d4b9bdb27efda50c457f0d56b23457 (patch)
tree0221f56a8545815514eb3350afe92a2d0262251b /plugins/GmailNotifier/src/notify.cpp
parent64e3214c2222543350f51b517a6b75b6b02b81cf (diff)
other minor code cleaning considering g_plugin
Diffstat (limited to 'plugins/GmailNotifier/src/notify.cpp')
-rw-r--r--plugins/GmailNotifier/src/notify.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/GmailNotifier/src/notify.cpp b/plugins/GmailNotifier/src/notify.cpp
index f47c0792cd..42804b3322 100644
--- a/plugins/GmailNotifier/src/notify.cpp
+++ b/plugins/GmailNotifier/src/notify.cpp
@@ -82,7 +82,7 @@ int OpenBrowser(WPARAM hContact, LPARAM)
return FALSE;
if (curAcc->oldResults_num != 0) {
- db_set_w(curAcc->hContact, MODULENAME, "Status", ID_STATUS_NONEW);
+ g_plugin.setWord(curAcc->hContact, "Status", ID_STATUS_NONEW);
curAcc->oldResults_num = 0;
DeleteResults(curAcc->results.next);
curAcc->results.next = nullptr;
@@ -134,15 +134,15 @@ void NotifyUser(Account *curAcc)
PUDeletePopup(curAcc->popUpHwnd);
g_clistApi.pfnRemoveEvent(curAcc->hContact, 1);
if (curAcc->oldResults_num != 0)
- db_set_w(curAcc->hContact, MODULENAME, "Status", ID_STATUS_NONEW);
+ g_plugin.setWord(curAcc->hContact, "Status", ID_STATUS_NONEW);
break;
case -1:
- db_set_w(curAcc->hContact, MODULENAME, "Status", ID_STATUS_AWAY);
+ g_plugin.setWord(curAcc->hContact, "Status", ID_STATUS_AWAY);
break;
default:
- db_set_w(curAcc->hContact, MODULENAME, "Status", ID_STATUS_OCCUPIED);
+ g_plugin.setWord(curAcc->hContact, "Status", ID_STATUS_OCCUPIED);
int newMails = (curAcc->oldResults_num == -1) ? (curAcc->results_num) : (curAcc->results_num - curAcc->oldResults_num);
if (opt.LogThreads&&newMails > 0) {
DBEVENTINFO dbei = {};