From bb666b0ab74d278b3e5d0e34c28809537660ff09 Mon Sep 17 00:00:00 2001 From: silverleo Date: Sun, 5 Feb 2012 16:26:41 +0200 Subject: [PATCH] Fix an Unrecoverable config error issue when reading from an old config. Default this boolean to true incase there are no networks to loop over. This will silently drop any network modules for the user, but since there are no networks anyway it doesn't really matter. --- src/User.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/User.cpp b/src/User.cpp index 45c75828..52d1309e 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -363,7 +363,7 @@ bool CUser::ParseConfig(CConfig* pConfig, CString& sError) { CUtils::PrintAction("Loading Module [" + sModName + "]"); CString sModRet; CString sArgs = sValue.Token(1, true); - bool bModRet; + bool bModRet = true; CModInfo ModInfo; if (!CZNC::Get().GetModules().GetModInfo(ModInfo, sModName, sModRet)) {