updated libxml2 win32 package to 2.6.24
[xonotic/netradiant.git] / plugins / sample / sample.cpp
index cec08dddee07e06a166196f888e1d06d5854e9ba..80900b10e9b7a25b014f1d1ad3f577b193a1fe48 100644 (file)
@@ -89,10 +89,7 @@ SingletonSamplePluginModule g_SamplePluginModule;
 
 extern "C" void RADIANT_DLLEXPORT Radiant_RegisterModules(ModuleServer& server)
 {
-  GlobalErrorStream::instance().setOutputStream(server.getErrorStream());
-  GlobalOutputStream::instance().setOutputStream(server.getOutputStream());
-  GlobalDebugMessageHandler::instance().setHandler(server.getDebugMessageHandler());
-  GlobalModuleServer::instance().set(server);
+  initialiseModule(server);
 
   g_SamplePluginModule.selfRegister();
 }