Add JoinTries and MaxJoins config options to webadmin

This also changes the layout of the default skin a little, because it was
a little messed up. I still don't like the result, but meh, send patches!


git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1187 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
psychon
2008-09-03 14:28:18 +00:00
parent fe44108d90
commit 85a70a418c
4 changed files with 45 additions and 4 deletions

View File

@@ -789,6 +789,8 @@ bool CWebAdminSock::UserPage(CString& sPageRet, CUser* pUser) {
m_Template["BufferCount"] = CString(pUser->GetBufferCount());
m_Template["TimestampFormat"] = pUser->GetTimestampFormat();
m_Template["TimezoneOffset"] = CString(pUser->GetTimezoneOffset());
m_Template["JoinTries"] = CString(pUser->JoinTries());
m_Template["MaxJoins"] = CString(pUser->MaxJoins());
const set<CString>& ssAllowedHosts = pUser->GetAllowedHosts();
for (set<CString>::const_iterator it = ssAllowedHosts.begin(); it != ssAllowedHosts.end(); it++) {
@@ -1115,6 +1117,8 @@ CUser* CWebAdminSock::GetNewUser(CString& sPageRet, CUser* pUser) {
pNewUser->SetTimestampAppend(GetParam("appendtimestamp").ToBool());
pNewUser->SetTimestampPrepend(GetParam("prependtimestamp").ToBool());
pNewUser->SetTimezoneOffset(GetParam("timezoneoffset").ToDouble());
pNewUser->SetJoinTries(GetParam("jointries").ToUInt());
pNewUser->SetMaxJoins(GetParam("maxjoins").ToUInt());
if (IsAdmin()) {
pNewUser->SetDenyLoadMod(GetParam("denyloadmod").ToBool());