diff options
| author | George Hazan <ghazan@miranda.im> | 2018-11-13 23:17:16 +0300 |
|---|---|---|
| committer | George Hazan <ghazan@miranda.im> | 2018-11-13 23:17:16 +0300 |
| commit | 37bf075d4d326f6d5577fd2ce81f0e75d5ee7311 (patch) | |
| tree | 1b2f1fbf833ec7ee005e8f430622a5ed2b564c79 /plugins/YAMN/src/browser | |
| parent | 70ac0a879897a5100308f70d667267e5962060d4 (diff) | |
YAMN -> g_plugin
Diffstat (limited to 'plugins/YAMN/src/browser')
| -rw-r--r-- | plugins/YAMN/src/browser/mailbrowser.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/plugins/YAMN/src/browser/mailbrowser.cpp b/plugins/YAMN/src/browser/mailbrowser.cpp index 654f529e31..974e46fbe4 100644 --- a/plugins/YAMN/src/browser/mailbrowser.cpp +++ b/plugins/YAMN/src/browser/mailbrowser.cpp @@ -650,7 +650,7 @@ void DoMailActions(HWND hDlg, HACCOUNT ActualAccount, struct CMailNumbers *MN, D db_set_ws(ActualAccount->hContact, "CList", "StatusMsg", tszMsg); if (nflags & YAMN_ACC_CONTNICK) - db_set_ws(ActualAccount->hContact, YAMN_DBMODULE, "Nick", tszMsg); + g_plugin.setWString(ActualAccount->hContact, "Nick", tszMsg); } if ((nflags & YAMN_ACC_POP) && @@ -779,7 +779,7 @@ void DoMailActions(HWND hDlg, HACCOUNT ActualAccount, struct CMailNumbers *MN, D else db_set_s(ActualAccount->hContact, "CList", "StatusMsg", Translate("No new mail message")); if (nflags & YAMN_ACC_CONTNICK) - db_set_s(ActualAccount->hContact, YAMN_DBMODULE, "Nick", ActualAccount->Name); + g_plugin.setString(ActualAccount->hContact, "Nick", ActualAccount->Name); } } return; @@ -806,7 +806,7 @@ LRESULT CALLBACK NewMailPopupProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPa hContact = PUGetContact(hWnd); - if (!db_get_s(hContact, YAMN_DBMODULE, "Id", &dbv)) { + if (!g_plugin.getString(hContact, "Id", &dbv)) { Account = (HACCOUNT)CallService(MS_YAMN_FINDACCOUNTBYNAME, (WPARAM)POP3Plugin, (LPARAM)dbv.pszVal); db_free(&dbv); } @@ -870,7 +870,7 @@ LRESULT CALLBACK NewMailPopupProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM lPa MCONTACT hContact = PUGetContact(hWnd); - if (!db_get_s(hContact, YAMN_DBMODULE, "Id", &dbv)) { + if (!g_plugin.getString(hContact, "Id", &dbv)) { ActualAccount = (HACCOUNT)CallService(MS_YAMN_FINDACCOUNTBYNAME, (WPARAM)POP3Plugin, (LPARAM)dbv.pszVal); db_free(&dbv); } @@ -899,7 +899,7 @@ LRESULT CALLBACK NoNewMailPopupProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM l MCONTACT hContact = PUGetContact(hWnd); - if (!db_get_s(hContact, YAMN_DBMODULE, "Id", &dbv)) { + if (!g_plugin.getString(hContact, "Id", &dbv)) { ActualAccount = (HACCOUNT)CallService(MS_YAMN_FINDACCOUNTBYNAME, (WPARAM)POP3Plugin, (LPARAM)dbv.pszVal); db_free(&dbv); } @@ -962,7 +962,7 @@ LRESULT CALLBACK NoNewMailPopupProc(HWND hWnd, UINT msg, WPARAM wParam, LPARAM l MCONTACT hContact = PUGetContact(hWnd); - if (!db_get_s(hContact, YAMN_DBMODULE, "Id", &dbv)) { + if (!g_plugin.getString(hContact, "Id", &dbv)) { ActualAccount = (HACCOUNT)CallService(MS_YAMN_FINDACCOUNTBYNAME, (WPARAM)POP3Plugin, (LPARAM)dbv.pszVal); db_free(&dbv); } |
