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
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);
int main(int argc, char** argv)
{
- /*
- // test suite for modestacker
- irc::modestacker x(true);
- x.Push('o',"Brain");
- x.Push('h',"Brain");
- x.Push('v',"Brain");
- x.Push('q',"Brain");
- x.Push('a',"Brain");
- x.Push('o',"Brain");
- x.Push('h',"Brain");
- x.Push('v',"Brain");
- x.Push('q',"Brain");
- x.Push('a',"Brain");
- x.Push('o',"Brain");
- x.Push('h',"Brain");
- x.Push('v',"Brain");
- x.Push('q',"Brain");
- x.Push('a',"Brain");
- x.Push('o',"Brain");
- x.Push('h',"Brain");
- x.Push('v',"Brain");
- x.Push('q',"Brain");
- x.Push('a',"Brain");
- x.Push('o',"Brain");
- x.Push('h',"Brain");
- x.Push('v',"Brain");
- x.Push('q',"Brain");
- x.Push('a',"Brain");
-
- std::deque<std::string> modes;
- for (int i = 0; i < 2; i++)
- {
- x.GetStackedLine(modes);
- printf("=== Stacked line ===\n");
- printf("Mode sequence length=%d\n",modes.size());
- for (size_t n = 0; n < modes.size(); n++)
- {
- printf("\tmodes[%d]='%s'\n",n,modes[n].c_str());
- }
- }
- return 0;*/
-
SI = new InspIRCd(argc, argv);
SI->Run();
delete SI;