1
0

Refresh plugin list before trying to load.

This commit is contained in:
Mattes D 2015-04-19 17:25:48 +02:00
parent 206932b94d
commit be40ea323a

View File

@ -464,6 +464,7 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac
{ {
if (split.size() > 1) if (split.size() > 1)
{ {
cPluginManager::Get()->RefreshPluginList(); // Refresh the plugin list, so that if the plugin was added just now, it is loadable
a_Output.Out(cPluginManager::Get()->LoadPlugin(split[1]) ? "Plugin loaded" : "Error occurred loading plugin"); a_Output.Out(cPluginManager::Get()->LoadPlugin(split[1]) ? "Plugin loaded" : "Error occurred loading plugin");
} }
else else