mirror of
https://github.com/znc/znc.git
synced 2026-08-06 08:52:57 +02:00
Use the new CString constructor in various places to make them more readable
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1245 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
+6
-6
@@ -158,13 +158,13 @@ public:
|
||||
Table.SetCell("Value", "*****"); // m_sPassword
|
||||
Table.AddRow();
|
||||
Table.SetCell("Setting", "UseCloakedHost");
|
||||
Table.SetCell("Value", CString(m_bUseCloakedHost ? "true" : "false"));
|
||||
Table.SetCell("Value", CString(m_bUseCloakedHost));
|
||||
Table.AddRow();
|
||||
Table.SetCell("Setting", "UseChallenge");
|
||||
Table.SetCell("Value", CString(m_bUseChallenge ? "true" : "false"));
|
||||
Table.SetCell("Value", CString(m_bUseChallenge));
|
||||
Table.AddRow();
|
||||
Table.SetCell("Setting", "RequestPerms");
|
||||
Table.SetCell("Value", CString(m_bRequestPerms ? "true" : "false"));
|
||||
Table.SetCell("Value", CString(m_bRequestPerms));
|
||||
PutModule(Table);
|
||||
|
||||
} else if (sCommand == "status") {
|
||||
@@ -469,17 +469,17 @@ private:
|
||||
|
||||
void SetUseCloakedHost(const bool bUseCloakedHost) {
|
||||
m_bUseCloakedHost = bUseCloakedHost;
|
||||
SetNV("UseCloakedHost", CString(bUseCloakedHost ? "true" : "false"));
|
||||
SetNV("UseCloakedHost", CString(bUseCloakedHost));
|
||||
}
|
||||
|
||||
void SetUseChallenge(const bool bUseChallenge) {
|
||||
m_bUseChallenge = bUseChallenge;
|
||||
SetNV("UseChallenge", CString(bUseChallenge ? "true" : "false"));
|
||||
SetNV("UseChallenge", CString(bUseChallenge));
|
||||
}
|
||||
|
||||
void SetRequestPerms(const bool bRequestPerms) {
|
||||
m_bRequestPerms = bRequestPerms;
|
||||
SetNV("RequestPerms", CString(bRequestPerms ? "true" : "false"));
|
||||
SetNV("RequestPerms", CString(bRequestPerms));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user