From 6b8747ab637fb1906366867a40247fe970a8c1c6 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 16 Oct 2006 21:38:51 +0000 Subject: Added a tiny bit more logging to LoadModule, to log to default loglevel when a module is loaded git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5487 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index e9c459394..df4cfe754 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -577,6 +577,10 @@ bool InspIRCd::LoadModule(const char* filename) snprintf(MODERR,MAXBUF,"Loader/Linker error: Incorrect module API version: %d (our version: %d)",v.API,API_VERSION); return false; } + else + { + this->Log(DEFAULT,"New module introduced: %s (API version %d, Module version %d.%d.%d.%d)%s", filename, v.API, v.Major, v.Minor, v.Revision, v.Build, (!(v.Flags & VF_VENDOR) ? " [3rd Party]" : " [Vendor]")); + } modules[this->ModCount+1] = m; /* save the module and the module's classfactory, if -- cgit v1.2.3