From 139d27d5c459a79c303e27b7c050148e928d8346 Mon Sep 17 00:00:00 2001 From: prozacx Date: Wed, 25 May 2005 03:13:29 +0000 Subject: [PATCH] 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 --- znc.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/znc.cpp b/znc.cpp index 11e6057f..f5dfd6d0 100644 --- a/znc.cpp +++ b/znc.cpp @@ -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) {