diff options
Diffstat (limited to 'src')
-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() |