summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-31 19:26:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-10-31 19:26:26 +0000
commit31eaefa6a6244bc1226bacf9b3d9e527f49f035f (patch)
treeb26a353635e60b820c0b8ce57bd7bbcf1fb1d048 /src
parentdcd26f6b564ade8fa51f1adb972c4e1fb5f234c7 (diff)
Add factories for eline and gline as tests
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8438 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/xline.cpp14
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)