webadmin: renamed chan setting 'buffer' to 'buffersize'

close #1029
This commit is contained in:
Chris Tyrrel
2015-08-13 01:10:11 -06:00
committed by J-P Nurmi
parent ae0d0937e2
commit bfab89edba
3 changed files with 11 additions and 11 deletions

View File

@@ -645,7 +645,7 @@ public:
Tmpl["Edit"] = "true";
Tmpl["Title"] = "Edit Channel" + CString(" [" + pChan->GetName() + "]") + " of Network [" + pNetwork->GetName() + "] of User [" + pNetwork->GetUser()->GetUserName() + "]";
Tmpl["ChanName"] = pChan->GetName();
Tmpl["BufferCount"] = CString(pChan->GetBufferCount());
Tmpl["BufferSize"] = CString(pChan->GetBufferCount());
Tmpl["DefModes"] = pChan->GetDefaultModes();
Tmpl["Key"] = pChan->GetKey();
breadChan["Text"] = "Edit Channel [" + pChan->GetName() + "]";
@@ -656,7 +656,7 @@ public:
} else {
Tmpl["Action"] = "addchan";
Tmpl["Title"] = "Add Channel" + CString(" for User [" + pUser->GetUserName() + "]");
Tmpl["BufferCount"] = CString(pUser->GetBufferCount());
Tmpl["BufferSize"] = CString(pUser->GetBufferCount());
Tmpl["DefModes"] = CString(pUser->GetDefaultChanModes());
Tmpl["InConfig"] = "true";
breadChan["Text"] = "Add Channel";
@@ -716,9 +716,9 @@ public:
}
}
unsigned int uBufferCount = WebSock.GetParam("buffercount").ToUInt();
if (pChan->GetBufferCount() != uBufferCount) {
pChan->SetBufferCount(uBufferCount, spSession->IsAdmin());
unsigned int uBufferSize = WebSock.GetParam("buffersize").ToUInt();
if (pChan->GetBufferCount() != uBufferSize) {
pChan->SetBufferCount(uBufferSize, spSession->IsAdmin());
}
pChan->SetDefaultModes(WebSock.GetParam("defmodes"));
pChan->SetInConfig(WebSock.GetParam("save").ToBool());
@@ -879,9 +879,9 @@ public:
l["CurModes"] = pChan->GetModeString();
l["DefModes"] = pChan->GetDefaultModes();
if (pChan->HasBufferCountSet()) {
l["BufferCount"] = CString(pChan->GetBufferCount());
l["BufferSize"] = CString(pChan->GetBufferCount());
} else {
l["BufferCount"] = CString(pChan->GetBufferCount()) + " (default)";
l["BufferSize"] = CString(pChan->GetBufferCount()) + " (default)";
}
l["Options"] = pChan->GetOptions();