mirror of
https://github.com/znc/znc.git
synced 2026-05-08 06:14:40 +02:00
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:
+2
-2
@@ -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 " +
|
||||
|
||||
Reference in New Issue
Block a user