From 53fe3e46177d17b4941610de19f5cc6210700cb4 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 12 Nov 2018 21:44:56 +0300 Subject: db_* functions replaced with g_plugin calls --- src/core/stdautoaway/src/autoaway.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/core/stdautoaway') diff --git a/src/core/stdautoaway/src/autoaway.cpp b/src/core/stdautoaway/src/autoaway.cpp index b926c740f2..4445cfb00f 100644 --- a/src/core/stdautoaway/src/autoaway.cpp +++ b/src/core/stdautoaway/src/autoaway.cpp @@ -71,16 +71,16 @@ static int AutoAwayEvent(WPARAM, LPARAM lParam) continue; // save old status of account and set to given status - db_set_w(NULL, MODULENAME, pa->szModuleName, pa->iRealStatus); + g_plugin.setWord(pa->szModuleName, pa->iRealStatus); Proto_SetStatus(pa->szModuleName, status); } else { - int oldstatus = db_get_w(NULL, MODULENAME, pa->szModuleName, 0); + int oldstatus = g_plugin.getWord(pa->szModuleName, 0); if (oldstatus != ID_STATUS_ONLINE && oldstatus != ID_STATUS_FREECHAT) continue; // returning from idle and this accout was set away, set it back - db_unset(NULL, MODULENAME, pa->szModuleName); + g_plugin.delSetting(pa->szModuleName); if (!mii.aaLock) Proto_SetStatus(pa->szModuleName, oldstatus); } -- cgit v1.2.3