From 250c199188c598669424ced2095e20240e7a7bb2 Mon Sep 17 00:00:00 2001 From: Koncord Date: Sun, 7 May 2017 02:52:28 +0800 Subject: [PATCH] [Server] Fill query information about plugins --- apps/openmw-mp/Networking.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/apps/openmw-mp/Networking.cpp b/apps/openmw-mp/Networking.cpp index 84ae6d606..819f4974c 100644 --- a/apps/openmw-mp/Networking.cpp +++ b/apps/openmw-mp/Networking.cpp @@ -504,4 +504,14 @@ void Networking::postInit() { Script::Call(); samples = getPluginListSample(); + if(mclient) + { + for(auto plugin : samples) + { + if(!plugin.second.empty()) + mclient->PushPlugin({plugin.first, plugin.second[0]}); + else + mclient->PushPlugin({plugin.first, 0}); + } + } }