summaryrefslogtreecommitdiff
path: root/src/inspircd.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-26 17:57:24 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-26 17:57:24 +0000
commitbd59b1a9a283c09b318bd3a6cb93774d5961b794 (patch)
treea6a24a33ef748ec2c0e080acb51f961e9e4a81f0 /src/inspircd.cpp
parenta9b90ecb4329498aba52da6aaa9812e3a70b8e11 (diff)
Fixed support for implementation hooks
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2654 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r--src/inspircd.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 33190e171..f15fba3a0 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -359,7 +359,12 @@ bool InspIRCd::LoadModule(const char* filename)
/* save the module and the module's classfactory, if
* this isnt done, random crashes can occur :/ */
Config->module_names.push_back(filename);
- modules[MODCOUNT+1]->Implements(Config->implement_lists[MODCOUNT+1]);
+
+ char* x = &Config->implement_lists[MODCOUNT+1][0];
+ for(int t = 0; t < 255; t++)
+ x[t] = 0;
+
+ modules[MODCOUNT+1]->Implements(x);
}
else
{