summaryrefslogtreecommitdiff
path: root/plugins/ListeningTo/src/listeningto.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-11-12 21:44:56 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-11-12 21:44:56 +0300
commit53fe3e46177d17b4941610de19f5cc6210700cb4 (patch)
treeb67a6bc208dad141f9db14035cd7e42ff2a51872 /plugins/ListeningTo/src/listeningto.cpp
parent488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff)
db_* functions replaced with g_plugin calls
Diffstat (limited to 'plugins/ListeningTo/src/listeningto.cpp')
-rw-r--r--plugins/ListeningTo/src/listeningto.cpp6
1 files changed, 3 insertions, 3 deletions
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);