summaryrefslogtreecommitdiff
path: root/plugins/NewAwaySysMod/src/Properties.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-14 15:57:47 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-14 15:57:47 +0300
commita6b9f6570b4cb4a425f91d4694e6b027f12cc8b7 (patch)
tree86960597fbdc0025b12c4e87b8b536dd3d9910fb /plugins/NewAwaySysMod/src/Properties.h
parent28b81bbed5d8db354349fd787c3db4123e55d423 (diff)
hContact, MODULENAME -> g_plugin
Diffstat (limited to 'plugins/NewAwaySysMod/src/Properties.h')
-rw-r--r--plugins/NewAwaySysMod/src/Properties.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/plugins/NewAwaySysMod/src/Properties.h b/plugins/NewAwaySysMod/src/Properties.h
index fa1e083f7b..506c160076 100644
--- a/plugins/NewAwaySysMod/src/Properties.h
+++ b/plugins/NewAwaySysMod/src/Properties.h
@@ -421,9 +421,9 @@ public:
CString Setting(Parent->ContactStatusToDBSetting(DB_IGNOREREQUESTS, IDC_MOREOPTDLG_PERSTATUSPERSONALSETTINGS));
MCONTACT hContact = (Parent->m_hContact != INVALID_CONTACT_ID) ? Parent->m_hContact : NULL;
if (m_value)
- db_set_b(hContact, MODULENAME, Setting, 1);
+ g_plugin.setByte(hContact, Setting, 1);
else
- db_unset(hContact, MODULENAME, Setting);
+ g_plugin.delSetting(hContact, Setting);
return *this;
}
@@ -445,13 +445,13 @@ public:
{
CString Setting(Parent->ContactStatusToDBSetting(DB_ENABLEREPLY, IDC_MOREOPTDLG_PERSTATUSPERSONALSETTINGS));
MCONTACT hContact = (Parent->m_hContact != INVALID_CONTACT_ID) ? Parent->m_hContact : NULL;
- if (db_get_b(hContact, MODULENAME, Setting, VAL_USEDEFAULT) == m_value)
+ if (g_plugin.getByte(hContact, Setting, VAL_USEDEFAULT) == m_value)
return *this;
if (m_value != VAL_USEDEFAULT)
- db_set_b(hContact, MODULENAME, Setting, m_value != 0);
+ g_plugin.setByte(hContact, Setting, m_value != 0);
else
- db_unset(hContact, MODULENAME, Setting);
+ g_plugin.delSetting(hContact, Setting);
return *this;
}
operator int() {return db_get_b((Parent->m_hContact != INVALID_CONTACT_ID) ? Parent->m_hContact : NULL, MODULENAME, Parent->ContactStatusToDBSetting(DB_ENABLEREPLY, IDC_MOREOPTDLG_PERSTATUSPERSONALSETTINGS), Parent->m_hContact ? VAL_USEDEFAULT : AUTOREPLY_DEF_REPLY);}