diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 22:35:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-12-26 22:35:39 +0000 |
commit | 005ba1bf25510ea0dc83291fa60145aac1c2e21d (patch) | |
tree | ef6e55219b5c1eeb4dd64d8140169e860dc82cc7 /src/inspircd.cpp | |
parent | 3926fcf5051d77798419096fc2e09df730df5bc9 (diff) |
Fixed and implemented /modules debug <glob>
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2673 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/inspircd.cpp')
-rw-r--r-- | src/inspircd.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 24effa62a..b68f4934e 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -196,6 +196,8 @@ InspIRCd::InspIRCd(int argc, char** argv) for(int t = 0; t < 255; t++) Config->global_implementation[t] = 0; + memset(&Config->implement_lists,0,sizeof(Config->implement_lists)); + printf("\n"); if (!Config->nofork) { @@ -299,7 +301,9 @@ bool InspIRCd::UnloadModule(const char* filename) } for(int t = 0; t < 255; t++) + { Config->global_implementation[t] -= Config->implement_lists[j][t]; + } FOREACH_MOD(I_OnUnloadModule,OnUnloadModule(modules[j],Config->module_names[j])); // found the module @@ -374,7 +378,13 @@ bool InspIRCd::LoadModule(const char* filename) modules[MODCOUNT+1]->Implements(x); for(int t = 0; t < 255; t++) + { Config->global_implementation[t] += Config->implement_lists[MODCOUNT+1][t]; + if (Config->implement_lists[MODCOUNT+1][t]) + { + log(DEBUG,"Add global implementation: %d %d => %d",MODCOUNT+1,t,Config->global_implementation[t]); + } + } } else { |