virtual Version GetVersion()
{
- return Version(1,1,0,1,VF_VENDOR|VF_COMMON,API_VERSION);
+ return Version(1, 1, 0, 1, VF_COMMON | VF_VENDOR, API_VERSION);
}
std::string EncodeSVSHold(const SVSHold* ban)
SVSHold* DecodeSVSHold(const std::string &data)
{
SVSHold* res = new SVSHold();
+ int set_on;
irc::tokenstream tokens(data);
tokens.GetToken(res->nickname);
tokens.GetToken(res->set_by);
- tokens.GetToken(res->set_on);
+ tokens.GetToken(set_on);
+ res->set_on = set_on;
tokens.GetToken(res->length);
tokens.GetToken(res->reason);
return res;
}
};
-class ModuleSVSHoldFactory : public ModuleFactory
-{
- public:
- ModuleSVSHoldFactory()
- {
- }
-
- ~ModuleSVSHoldFactory()
- {
- }
-
- virtual Module * CreateModule(InspIRCd* Me)
- {
- return new ModuleSVSHold(Me);
- }
-
-};
-
-
-extern "C" DllExport void * init_module( void )
-{
- return new ModuleSVSHoldFactory;
-}
+MODULE_INIT(ModuleSVSHold)