From 56e1f95a114c2f12bb3e7a00d902d45c6ded2ade Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 14 Oct 2007 22:12:53 +0000 Subject: Fix the 'total of -1 modules have been loaded' due to new loader git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8197 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index b236977cc..563e06c28 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -598,7 +598,7 @@ void ModuleManager::LoadAll() Instance->Exit(EXIT_STATUS_MODULE); } } - printf_c("\nA total of \033[1;32m%d\033[0m module%s been loaded.\n", this->GetCount(), this->GetCount() == 1 ? " has" : "s have"); + printf_c("\nA total of \033[1;32m%d\033[0m module%s been loaded.\n", (this->GetCount()+1), (this->GetCount()+1) == 1 ? " has" : "s have"); Instance->Log(DEFAULT,"Total loaded modules: %d", this->GetCount()); } -- cgit v1.2.3