summaryrefslogtreecommitdiff
path: root/protocols/IRCG/src/userinfo.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2023-12-12 14:36:58 +0300
committerGeorge Hazan <george.hazan@gmail.com>2023-12-12 14:36:58 +0300
commit76f9fa91806fe6a47db2dd95930e4985da5b1e3f (patch)
treecba257359c83a085185e2e54e898ca769508336a /protocols/IRCG/src/userinfo.cpp
parent74e92c6e3d5f3fb6ffd0ce2af5bd460b0d323a90 (diff)
IRC: code cleaning
Diffstat (limited to 'protocols/IRCG/src/userinfo.cpp')
-rw-r--r--protocols/IRCG/src/userinfo.cpp20
1 files changed, 10 insertions, 10 deletions
diff --git a/protocols/IRCG/src/userinfo.cpp b/protocols/IRCG/src/userinfo.cpp
index c0e18fa0eb..2515886ac9 100644
--- a/protocols/IRCG/src/userinfo.cpp
+++ b/protocols/IRCG/src/userinfo.cpp
@@ -117,7 +117,7 @@ public:
S += dbv.pwszVal;
S += L")";
if ((mir_wstrlen(temp) < 4 && mir_wstrlen(temp)) || !WCCmp(CharLower(temp), CharLower(dbv.pwszVal))) {
- MessageBox(nullptr, TranslateW(S.c_str()), TranslateT("IRC error"), MB_OK | MB_ICONERROR);
+ MessageBox(nullptr, TranslateW(S), TranslateT("IRC error"), MB_OK | MB_ICONERROR);
db_free(&dbv);
return;
}
@@ -125,25 +125,25 @@ public:
}
GetDlgItemText(m_hwnd, IDC_WILDCARD, temp, _countof(temp));
- if (mir_wstrlen(GetWord(temp, 0).c_str()))
- ppro->setWString(m_hContact, "UWildcard", GetWord(temp, 0).c_str());
+ if (mir_wstrlen(GetWord(temp, 0)))
+ ppro->setWString(m_hContact, "UWildcard", GetWord(temp, 0));
else
- db_unset(m_hContact, ppro->m_szModuleName, "UWildcard");
+ ppro->delSetting(m_hContact, "UWildcard");
}
ppro->setByte(m_hContact, "AdvancedMode", bAdvanced);
GetDlgItemText(m_hwnd, IDC_USER, temp, _countof(temp));
- if (mir_wstrlen(GetWord(temp, 0).c_str()))
- ppro->setWString(m_hContact, "UUser", GetWord(temp, 0).c_str());
+ if (mir_wstrlen(GetWord(temp, 0)))
+ ppro->setWString(m_hContact, "UUser", GetWord(temp, 0));
else
- db_unset(m_hContact, ppro->m_szModuleName, "UUser");
+ ppro->delSetting(m_hContact, "UUser");
GetDlgItemText(m_hwnd, IDC_HOST, temp, _countof(temp));
- if (mir_wstrlen(GetWord(temp, 0).c_str()))
- ppro->setWString(m_hContact, "UHost", GetWord(temp, 0).c_str());
+ if (mir_wstrlen(GetWord(temp, 0)))
+ ppro->setWString(m_hContact, "UHost", GetWord(temp, 0));
else
- db_unset(m_hContact, ppro->m_szModuleName, "UHost");
+ ppro->delSetting(m_hContact, "UHost");
btn1.Disable();
}