From ad9667dd3ef3c3dd9f7aed78ba05656961d62de1 Mon Sep 17 00:00:00 2001 From: silverleo Date: Wed, 2 Feb 2011 13:14:22 +0000 Subject: [PATCH] Fix the IsAdmin checks for the SetBufferCount git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@2276 726aef4b-f618-498e-8847-2d620e286838 --- modules/admin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/admin.cpp b/modules/admin.cpp index 9c16b9a0..cbf28840 100644 --- a/modules/admin.cpp +++ b/modules/admin.cpp @@ -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 " +