* ---------------------------------------------------
*/
-#include "inspircd_config.h"
-#include "configreader.h"
+#include "inspircd.h"
#include "users.h"
#include "channels.h"
#include "modules.h"
#include "hashcomp.h"
-#include "inspircd.h"
/* $ModDesc: Provides XMLSocket support for clients */
for (int i = 0; i < Conf->Enumerate("bind"); i++)
{
// For each <bind> tag
- if (((Conf->ReadValue("bind", "type", i) == "") || (Conf->ReadValue("bind", "type", i) == "clients")) && (Conf->ReadFlag("bind", "xmlsocket", i)))
+ std::string x = Conf->ReadValue("bind", "type", i);
+ if (((x.empty()) || (x == "clients")) && (Conf->ReadFlag("bind", "xmlsocket", i)))
{
// Get the port we're meant to be listening on with SSL
std::string port = Conf->ReadValue("bind", "port", i);
};
-class ModuleXMLSocketFactory : public ModuleFactory
-{
- public:
- ModuleXMLSocketFactory()
- {
- }
+MODULE_INIT(ModuleXMLSocket)
- ~ModuleXMLSocketFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleXMLSocket(Me);
- }
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleXMLSocketFactory;
-}