summaryrefslogtreecommitdiff
path: root/src/modules/m_alltime.cpp
diff options
context:
space:
mode:
authorw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-17 13:11:00 +0000
committerw00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7>2007-06-17 13:11:00 +0000
commitb68f64cf6ae64f220fbb91d26c0fd2ffb8ee402a (patch)
tree5327037fca3ed06be2b61e0f4079f43db3f490ee /src/modules/m_alltime.cpp
parent69ffa8d85f9f709b72ad3c4489b7c93f7ec14a9a (diff)
Convert a few modules
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7344 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_alltime.cpp')
-rw-r--r--src/modules/m_alltime.cpp24
1 files changed, 2 insertions, 22 deletions
diff --git a/src/modules/m_alltime.cpp b/src/modules/m_alltime.cpp
index 7e848245a..6fc377083 100644
--- a/src/modules/m_alltime.cpp
+++ b/src/modules/m_alltime.cpp
@@ -57,6 +57,7 @@ class cmd_alltime : public command_t
}
};
+
class Modulealltime : public Module
{
cmd_alltime *mycommand;
@@ -79,25 +80,4 @@ class Modulealltime : public Module
};
-class ModulealltimeFactory : public ModuleFactory
-{
- public:
- ModulealltimeFactory()
- {
- }
-
- ~ModulealltimeFactory()
- {
- }
-
- virtual Module *CreateModule(InspIRCd *Me)
- {
- return new Modulealltime(Me);
- }
-};
-
-
-extern "C" DllExport void *init_module(void)
-{
- return new ModulealltimeFactory;
-}
+MODULE_INIT(Modulealltime);