summaryrefslogtreecommitdiffstats
path: root/src/Server.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/Server.cpp')
-rw-r--r--src/Server.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/Server.cpp b/src/Server.cpp
index 67629ef2c..2730d3511 100644
--- a/src/Server.cpp
+++ b/src/Server.cpp
@@ -463,7 +463,15 @@ void cServer::ExecuteConsoleCommand(const AString & a_Cmd, cCommandOutputCallbac
}
else if (split[0] == "reload")
{
- cPluginManager::Get()->ReloadPlugins();
+ if (split.size() > 1)
+ {
+ cPluginManager::Get()->ReloadPlugin(split[1]);
+ a_Output.Out("Plugin reload scheduled");
+ }
+ else
+ {
+ cPluginManager::Get()->ReloadPlugins();
+ }
a_Output.Finished();
return;
}