diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-16 21:38:51 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-10-16 21:38:51 +0000 |
commit | 6b8747ab637fb1906366867a40247fe970a8c1c6 (patch) | |
tree | 548165b858e87bae8f4d34fc0165ccc2e082b09f /src | |
parent | bc69a6264e99a0609c1f198487c5c8143147d128 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
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 |