diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/xline.cpp | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/xline.cpp b/src/xline.cpp index b970ad9e7..a853eb35f 100644 --- a/src/xline.cpp +++ b/src/xline.cpp @@ -422,6 +422,20 @@ void XLineManager::stats_e(User* user, string_list &results) XLineManager::XLineManager(InspIRCd* Instance) : ServerInstance(Instance) { + GFact = new GLineFactory(Instance); + EFact = new ELineFactory(Instance); + + RegisterFactory(GFact); + RegisterFactory(EFact); +} + +XLineManager::~XLineManager() +{ + UnregisterFactory(GFact); + UnregisterFactory(EFact); + + delete GFact; + delete EFact; } void XLine::Apply(User* u) |