diff options
author | George Hazan <ghazan@miranda.im> | 2018-11-12 21:44:56 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-11-12 21:44:56 +0300 |
commit | 53fe3e46177d17b4941610de19f5cc6210700cb4 (patch) | |
tree | b67a6bc208dad141f9db14035cd7e42ff2a51872 /protocols/MSN/src | |
parent | 488214ac8af0c4aeb1a5c1d8fd48368daaf4c4c7 (diff) |
db_* functions replaced with g_plugin calls
Diffstat (limited to 'protocols/MSN/src')
-rw-r--r-- | protocols/MSN/src/msn_misc.cpp | 6 | ||||
-rw-r--r-- | protocols/MSN/src/msn_opts.cpp | 4 | ||||
-rw-r--r-- | protocols/MSN/src/msn_proto.cpp | 8 |
3 files changed, 9 insertions, 9 deletions
diff --git a/protocols/MSN/src/msn_misc.cpp b/protocols/MSN/src/msn_misc.cpp index c6954fe6d1..04892c6f11 100644 --- a/protocols/MSN/src/msn_misc.cpp +++ b/protocols/MSN/src/msn_misc.cpp @@ -399,7 +399,7 @@ int ThreadData::sendMessage(int, const char *email, int netId, const char *parMs char* p;
DBVARIANT dbv;
- if (!db_get_s(NULL, "SRMsg", "Font0", &dbv)) {
+ if (!db_get_s(0, "SRMsg", "Font0", &dbv)) {
for (p = dbv.pszVal; *p; p++)
if (BYTE(*p) >= 128 || *p < 32)
break;
@@ -410,13 +410,13 @@ int ThreadData::sendMessage(int, const char *email, int netId, const char *parMs }
}
- int tStyle = db_get_b(NULL, "SRMsg", "Font0Sty", 0);
+ int tStyle = db_get_b(0, "SRMsg", "Font0Sty", 0);
p = tFontStyle;
if (tStyle & 1) *p++ = 'B';
if (tStyle & 2) *p++ = 'I';
*p = 0;
- tFontColor = db_get_dw(NULL, "SRMsg", "Font0Col", 0);
+ tFontColor = db_get_dw(0, "SRMsg", "Font0Col", 0);
}
else tFontStyle[0] = 0;
}
diff --git a/protocols/MSN/src/msn_opts.cpp b/protocols/MSN/src/msn_opts.cpp index 570fe40dab..fcf4fd378f 100644 --- a/protocols/MSN/src/msn_opts.cpp +++ b/protocols/MSN/src/msn_opts.cpp @@ -373,8 +373,8 @@ static INT_PTR CALLBACK DlgProcMsnConnOpts(HWND hwndDlg, UINT msg, WPARAM wParam proto->setByte("SlowSend", (BYTE)IsDlgButtonChecked(hwndDlg, IDC_SLOWSEND));
if (proto->getByte("SlowSend", FALSE)) {
- if (db_get_dw(NULL, "SRMsg", "MessageTimeout", 60000) < 60000 ||
- db_get_dw(NULL, "SRMM", "MessageTimeout", 60000) < 60000) {
+ if (db_get_dw(0, "SRMsg", "MessageTimeout", 60000) < 60000 ||
+ db_get_dw(0, "SRMM", "MessageTimeout", 60000) < 60000) {
MessageBox(nullptr, TranslateT("MSN Protocol requires message timeout to be not less then 60 sec. Correct the timeout value."),
TranslateT("MSN Protocol"), MB_OK | MB_ICONINFORMATION);
}
diff --git a/protocols/MSN/src/msn_proto.cpp b/protocols/MSN/src/msn_proto.cpp index 2005afd17c..4cc2b1fae4 100644 --- a/protocols/MSN/src/msn_proto.cpp +++ b/protocols/MSN/src/msn_proto.cpp @@ -105,10 +105,10 @@ CMsnProto::CMsnProto(const char* aProtoName, const wchar_t* aUserName) : delSetting("LoginServer");
if (MyOptions.SlowSend) {
- if (db_get_dw(NULL, "SRMsg", "MessageTimeout", 10000) < 60000)
- db_set_dw(NULL, "SRMsg", "MessageTimeout", 60000);
- if (db_get_dw(NULL, "SRMM", "MessageTimeout", 10000) < 60000)
- db_set_dw(NULL, "SRMM", "MessageTimeout", 60000);
+ if (db_get_dw(0, "SRMsg", "MessageTimeout", 10000) < 60000)
+ db_set_dw(0, "SRMsg", "MessageTimeout", 60000);
+ if (db_get_dw(0, "SRMM", "MessageTimeout", 10000) < 60000)
+ db_set_dw(0, "SRMM", "MessageTimeout", 60000);
}
mailsoundname = (char*)mir_alloc(64);
|