From dcc49f9c6f9df81af63a28773999f52f8512ca8d Mon Sep 17 00:00:00 2001 From: sebastinas Date: Mon, 23 Mar 2009 20:43:11 +0000 Subject: [PATCH] Admin module: some cosmetic fixes Use ToUInt to convert the string, since we're actually using an unsigned integer. And use ToBool for consistency. git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@1440 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 faf81569..aa098696 100644 --- a/modules/admin.cpp +++ b/modules/admin.cpp @@ -213,12 +213,12 @@ class CAdminMod : public CModule { PutModule("QuitMsg = " + value); } else if (var == "buffercount") { - unsigned int i = value.ToInt(); + unsigned int i = value.ToUInt(); user->SetBufferCount(i); PutModule("BufferCount = " + value); } else if (var == "keepbuffer") { - bool b = value.AsLower() == "true"; + bool b = value.ToBool(); user->SetKeepBuffer(b); PutModule("KeepBuffer = " + CString(b ? "true" : "false")); }