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
This commit is contained in:
sebastinas
2009-03-23 20:43:11 +00:00
parent 5475361404
commit dcc49f9c6f

View File

@@ -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"));
}