]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/inspircd.cpp
Whowas is now fixed.
[user/henk/code/inspircd.git] / src / inspircd.cpp
index da3c603fa177713d6c713c83ce2b1b1bb35c64c7..e9c459394cd3e0e265b48c7d397d9f26d0e7b026 100644 (file)
@@ -664,7 +664,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);
@@ -726,48 +726,6 @@ int InspIRCd::Run()
 
 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;