Merge branch '1.6.x'

Conflicts:
	src/User.cpp
This commit is contained in:
Alexey Sokolov
2015-04-28 21:44:07 +01:00
2 changed files with 6 additions and 1 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ AC_PROG_CXX
# "Optional" because we want custom error message
AX_CXX_COMPILE_STDCXX_11([noext], [optional])
if test x"$HAVE_CXX11" != x1; then
AC_MSG_ERROR([Either upgrade your compiler, or use ZNC 1.4])
AC_MSG_ERROR([Upgrade your compiler. GCC 4.7+ and Clang 3.2+ are known to work.])
fi
AC_PROG_INSTALL
+5
View File
@@ -1095,6 +1095,11 @@ bool CUser::LoadModule(const CString& sModName, const CString& sArgs, const CStr
CFile fNVFile = CFile(GetUserPath() + "/moddata/" + sModName + "/.registry");
for (CIRCNetwork* pNetwork : m_vIRCNetworks) {
// Check whether the network already has this module loaded (#954)
if (pNetwork->GetModules().FindModule(sModName)) {
continue;
}
if (fNVFile.Exists()) {
CString sNetworkModPath = pNetwork->GetNetworkPath() + "/moddata/" + sModName;
if (!CFile::Exists(sNetworkModPath)) {