Fix the IsAdmin checks for the SetBufferCount

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2276 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
silverleo
2011-02-02 13:14:22 +00:00
parent e66b244f35
commit ad9667dd3e
+2 -2
View File
@@ -286,7 +286,7 @@ class CAdminMod : public CModule {
else if (sVar == "buffercount") {
unsigned int i = sValue.ToUInt();
// Admins don't have to honour the buffer limit
if (pUser->SetBufferCount(i), m_pUser->IsAdmin()) {
if (pUser->SetBufferCount(i, m_pUser->IsAdmin())) {
PutModule("BufferCount = " + sValue);
} else {
PutModule("Setting failed, limit is " +
@@ -432,7 +432,7 @@ class CAdminMod : public CModule {
} else if (sVar == "buffer") {
unsigned int i = sValue.ToUInt();
// Admins don't have to honour the buffer limit
if (pChan->SetBufferCount(i), m_pUser->IsAdmin()) {
if (pChan->SetBufferCount(i, m_pUser->IsAdmin())) {
PutModule("Buffer = " + sValue);
} else {
PutModule("Setting failed, limit is " +