mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
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:
8
znc.cpp
8
znc.cpp
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user