mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user