diff -r a2e4c1cbf800 -r 5d0c376864c8 core/systems/PluginSys.cpp --- a/core/systems/PluginSys.cpp Sat Jan 12 19:45:36 2008 +0000 +++ b/core/systems/PluginSys.cpp Sun Jan 13 02:08:40 2008 +0000 @@ -799,6 +799,17 @@ void CPlugin::AddConfig(bool autoCreate, const char *cfg, const char *folder) { + /* Do a check for duplicates to prevent double-execution */ + for (size_t i = 0; i < m_configs.size(); i++) + { + if (m_configs[i]->autocfg.compare(cfg) == 0 + && m_configs[i]->folder.compare(folder) == 0 + && m_configs[i]->create == autoCreate) + { + return; + } + } + AutoConfig *c = new AutoConfig; c->autocfg = cfg;