summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 15:01:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-12-23 15:01:26 +0000
commit3a07789b1594f8f6167b2d8a3eea3efa1c365284 (patch)
tree53c8c5201a524f010bb1dde9630d023fb2841283 /src
parentd490ee11a8ab27296cb19fc40c8dbb1632b51ca1 (diff)
Use GetModuleCount() rather than the member var
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6072 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/inspircd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 4c5232140..3b90d15dd 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -69,7 +69,7 @@ void InspIRCd::Exit(int status)
void InspIRCd::Restart(const std::string &reason)
{
std::vector<std::string> mymodnames;
- int MyModCount = 0;
+ int MyModCount = this->GetModuleCount();
/* SendError flushes each client's queue,
* regardless of writeability state
@@ -86,7 +86,7 @@ void InspIRCd::Restart(const std::string &reason)
*/
for (int tries = 0; tries < 2; tries++)
{
- MyModCount = ModCount;
+ MyModCount = this->GetModuleCount();
mymodnames.clear();
/* Unload all modules, so they get a chance to clean up their listeners */