diff --git a/configure.ac b/configure.ac index b9f3f298..4b6a3e56 100644 --- a/configure.ac +++ b/configure.ac @@ -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 diff --git a/src/User.cpp b/src/User.cpp index 151ef9d3..f184eae2 100644 --- a/src/User.cpp +++ b/src/User.cpp @@ -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)) {