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/GmailNotifier/src/utility.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins/GmailNotifier') diff --git a/plugins/GmailNotifier/src/utility.cpp b/plugins/GmailNotifier/src/utility.cpp index 2751aa2f1c..27d8aac1f3 100644 --- a/plugins/GmailNotifier/src/utility.cpp +++ b/plugins/GmailNotifier/src/utility.cpp @@ -5,14 +5,14 @@ void BuildList(void) g_accs.destroy(); for (auto &hContact : Contacts(MODULENAME)) { - ptrA szName(db_get_sa(hContact, MODULENAME, "name")); + ptrA szName(g_plugin.getStringA(hContact, "name")); if (szName != nullptr) { Account *p = new Account; p->hContact = hContact; mir_strcpy(p->name, szName); CallService(MS_IGNORE_IGNORE, hContact, IGNOREEVENT_USERONLINE); - ptrA szPassword(db_get_sa(hContact, MODULENAME, "Password")); + ptrA szPassword(g_plugin.getStringA(hContact, "Password")); if (szPassword != nullptr) mir_strcpy(p->pass, szPassword); g_accs.insert(p); -- cgit v1.2.3