Added KeepBuffer/Buffer config options to the User class

git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@168 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
prozacx
2005-04-23 17:54:20 +00:00
parent b69a6419ab
commit c8f8285f65
6 changed files with 51 additions and 27 deletions

View File

@@ -367,7 +367,13 @@ bool CZNC::ParseConfig(const string& sConfigFile) {
continue;
}
} else {
if (strcasecmp(sName.c_str(), "Nick") == 0) {
if (strcasecmp(sName.c_str(), "Buffer") == 0) {
pUser->SetBufferCount(strtoul(sValue.c_str(), NULL, 10));
continue;
} else if (strcasecmp(sName.c_str(), "KeepBuffer") == 0) {
pUser->SetKeepBuffer((strcasecmp(sValue.c_str(), "true") == 0));
continue;
} else if (strcasecmp(sName.c_str(), "Nick") == 0) {
pUser->SetNick(sValue);
continue;
} else if (strcasecmp(sName.c_str(), "VersionReply") == 0) {