ipvalid = inet_pton(AF_INET6, host.host.c_str(), &blargle);
}
else
+#endif
{
in_addr blargle;
ipvalid = inet_aton(host.host.c_str(), &blargle);
}
-#else
- in_addr blargle;
- ipvalid = inet_aton(host.host.c_str(), &blargle);
-#endif
if(ipvalid > 0)
{
((ModulePgSQL*)us)->ReconnectConn(this);
}
+MODULE_INIT(ModulePgSQL);
-class ModulePgSQLFactory : public ModuleFactory
-{
- public:
- ModulePgSQLFactory()
- {
- }
-
- ~ModulePgSQLFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModulePgSQL(Me);
- }
-};
-
-
-extern "C" void * init_module( void )
-{
- return new ModulePgSQLFactory;
-}