From a6b9f6570b4cb4a425f91d4694e6b027f12cc8b7 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 14 Nov 2018 15:57:47 +0300 Subject: hContact, MODULENAME -> g_plugin --- plugins/SecureIM/src/options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/SecureIM/src/options.cpp') diff --git a/plugins/SecureIM/src/options.cpp b/plugins/SecureIM/src/options.cpp index e1ba269df9..1104b30e18 100644 --- a/plugins/SecureIM/src/options.cpp +++ b/plugins/SecureIM/src/options.cpp @@ -1064,7 +1064,7 @@ void RefreshPGPDlg(HWND hDlg, BOOL iInit) for (auto &hContact : Contacts()) { pUinKey ptr = getUinKey(hContact); if (ptr && ptr->mode == MODE_PGP && isSecureProtocol(hContact) && !isChatRoom(hContact)) { - LPSTR szKeyID = db_get_sa(hContact, MODULENAME, "pgp_abbr"); + LPSTR szKeyID = g_plugin.getStringA(hContact, "pgp_abbr"); lvi.iItem++; lvi.iImage = (szKeyID != nullptr); @@ -1127,7 +1127,7 @@ void RefreshGPGDlg(HWND hDlg, BOOL iInit) if (iInit) ptr->tgpgMode = ptr->gpgMode; - LPSTR szKeyID = db_get_sa(hContact, MODULENAME, "gpg"); + LPSTR szKeyID = g_plugin.getStringA(hContact, "gpg"); lvi.iItem++; lvi.iImage = (szKeyID != nullptr); -- cgit v1.2.3