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 --- plugins/ListeningTo/src/listeningto.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins/ListeningTo/src/listeningto.cpp') diff --git a/plugins/ListeningTo/src/listeningto.cpp b/plugins/ListeningTo/src/listeningto.cpp index 1388406bca..187b2b4cf1 100644 --- a/plugins/ListeningTo/src/listeningto.cpp +++ b/plugins/ListeningTo/src/listeningto.cpp @@ -385,7 +385,7 @@ bool ListeningToEnabled(char *proto, bool ignoreGlobal) char setting[256]; mir_snprintf(setting, "%sEnabled", proto); - return db_get_b(NULL, MODULENAME, setting, false) != 0; + return g_plugin.getByte(setting, false) != 0; } INT_PTR ListeningToEnabled(WPARAM wParam, LPARAM) @@ -572,7 +572,7 @@ void SetListeningInfo(char *proto, LISTENINGTOINFO *lti = nullptr) mir_free(fr[1]); } } - else if (db_get_b(0, MODULENAME, "UseStatusMessage", 1) && ProtoServiceExists(proto, PS_SETAWAYMSG)) { + else if (g_plugin.getByte("UseStatusMessage", 1) && ProtoServiceExists(proto, PS_SETAWAYMSG)) { int status = Proto_GetStatus(proto); if (lti == nullptr) CallProtoService(proto, PS_SETAWAYMSG, status, 0); @@ -599,7 +599,7 @@ INT_PTR EnableListeningTo(char *proto, bool enabled) char setting[256]; mir_snprintf(setting, "%sEnabled", proto); - db_set_b(NULL, MODULENAME, setting, enabled); + g_plugin.setByte(setting, enabled); // Modify menu info ProtocolInfo *info = GetProtoInfo(proto); -- cgit v1.2.3