mirror of
https://github.com/znc/znc.git
synced 2026-08-08 09:52:55 +02:00
Moved call to OnConfigLine() to before znc handles the line so valid lines can be overridden
git-svn-id: https://znc.svn.sourceforge.net/svnroot/znc/trunk@357 726aef4b-f618-498e-8847-2d620e286838
This commit is contained in:
@@ -602,6 +602,10 @@ bool CZNC::ParseConfig(const CString& sConfig) {
|
||||
sName.Trim();
|
||||
sValue.Trim();
|
||||
|
||||
if (GetModules().OnConfigLine(sName, sValue, pUser, pChan)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if ((!sName.empty()) && (!sValue.empty())) {
|
||||
if (pUser) {
|
||||
if (pChan) {
|
||||
@@ -823,10 +827,8 @@ bool CZNC::ParseConfig(const CString& sConfig) {
|
||||
}
|
||||
}
|
||||
|
||||
if (!GetModules().OnConfigLine(sName, sValue, pUser, pChan)) {
|
||||
CUtils::PrintError("Unhandled line in config: [" + sLine + "]");
|
||||
return false;
|
||||
}
|
||||
CUtils::PrintError("Unhandled line in config: [" + sLine + "]");
|
||||
return false;
|
||||
}
|
||||
|
||||
if (pChan) {
|
||||
|
||||
Reference in New Issue
Block a user