commit
1f301d7560
@ -1827,7 +1827,7 @@ bool cPluginManager::DoWithPlugin(const AString & a_PluginName, cPluginCallback
|
||||
|
||||
bool cPluginManager::AddPlugin(cPlugin * a_Plugin)
|
||||
{
|
||||
m_Plugins[a_Plugin->GetDirectory()] = a_Plugin;
|
||||
m_Plugins[a_Plugin->GetDirectory()] = a_Plugin;
|
||||
|
||||
if (a_Plugin->Initialize())
|
||||
{
|
||||
|
@ -493,9 +493,9 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac
|
||||
{
|
||||
cPluginManager::PluginMap map = cPluginManager::Get()->GetAllPlugins();
|
||||
|
||||
for(auto plugin_entry : map)
|
||||
for (auto plugin_entry : map)
|
||||
{
|
||||
if(plugin_entry.first == split[1])
|
||||
if (plugin_entry.first == split[1])
|
||||
{
|
||||
a_Output.Out("Error! Plugin is already loaded!");
|
||||
a_Output.Finished();
|
||||
|
Loading…
Reference in New Issue
Block a user