mirror of
https://github.com/znc/znc.git
synced 2026-04-30 18:42:25 +02:00
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:
@@ -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"));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user