diff options
author | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-10 08:14:54 +0000 |
---|---|---|
committer | w00t <w00t@e03df62e-2008-0410-955e-edbf42e46eb7> | 2008-01-10 08:14:54 +0000 |
commit | 26d7a95ed5209a250624b36427204157d3d8f7f6 (patch) | |
tree | 20b51ffe30c7addab24a6ddc9415c62a72327bf5 /src/modules | |
parent | b36d3b36ed5a3aea00cb0b10f2e12d1cfef54a0a (diff) |
Register RLine factory on load, unregister it on unload.
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8686 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r-- | src/modules/m_rline.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/modules/m_rline.cpp b/src/modules/m_rline.cpp index 322204473..0aaae30d7 100644 --- a/src/modules/m_rline.cpp +++ b/src/modules/m_rline.cpp @@ -195,16 +195,21 @@ class ModuleRLine : public Module { private: CommandRLine *r; + RLineFactory *f; public: ModuleRLine(InspIRCd* Me) : Module(Me) { // Create a new command r = new CommandRLine(ServerInstance); ServerInstance->AddCommand(r); + + f = new RLineFactory(ServerInstance); + ServerInstance->XLines->RegisterFactory(f); } virtual ~ModuleRLine() { + ServerInstance->XLines->UnregisterFactory(f); } virtual Version GetVersion() |