]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Added a tiny bit more logging to LoadModule, to log to default loglevel when a module...
[user/henk/code/inspircd.git] / src / inspircd.cpp
index 2f35c9528fce16be4fe29f063c6dd42e3c51cd47..df4cfe7544366da52a0aa6270a6ae2619b2738c8 100644 (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
@@ -664,7 +668,7 @@ void InspIRCd::DoOneIteration(bool process_module_sockets)
                        WriteOpers("*** \002EH?!\002 -- Time is flowing BACKWARDS in this dimension! Clock drifted backwards %d secs.",abs(OLDTIME-TIME));
                if ((TIME % 3600) == 0)
                {
-                       irc::whowas::MaintainWhoWas(TIME);
+                       irc::whowas::MaintainWhoWas(this, TIME);
                }
                Timers->TickTimers(TIME);
                this->DoBackgroundUserStuff(TIME);