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
This commit is contained in:
brain 2006-10-16 21:38:51 +00:00
parent bc69a6264e
commit 6b8747ab63

View File

@ -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