mirror of
https://github.com/znc/znc.git
synced 2026-03-28 17:42:41 +01:00
Fix #954: Startup failure when simple_away is loaded after awaynick
This commit is contained in:
committed by
Alexey Sokolov
parent
f8d2c32e9a
commit
28393c309b
@@ -1101,6 +1101,11 @@ bool CUser::LoadModule(const CString& sModName, const CString& sArgs, const CStr
|
||||
CFile fNVFile = CFile(GetUserPath() + "/moddata/" + sModName + "/.registry");
|
||||
|
||||
for (vector<CIRCNetwork*>::iterator it = m_vIRCNetworks.begin(); it != m_vIRCNetworks.end(); ++it) {
|
||||
// Check whether the network already has this module loaded (#954)
|
||||
if ((*it)->GetModules().FindModule(sModName)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (fNVFile.Exists()) {
|
||||
CString sNetworkModPath = (*it)->GetNetworkPath() + "/moddata/" + sModName;
|
||||
if (!CFile::Exists(sNetworkModPath)) {
|
||||
|
||||
Reference in New Issue
Block a user