]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/mode.cpp
Fix --with-max-clients not taking a parameter (reported by erich)
[user/henk/code/inspircd.git] / src / mode.cpp
index 1c2f740c3d166473f49fc31094b0751711136ed5..dfa846364f95366e969ec67cae99346fc750f17f 100644 (file)
@@ -267,8 +267,6 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool
        userrec* targetuser  = ServerInstance->FindNick(parameters[0]);
 
        ServerInstance->Log(DEBUG,"ModeParser::Process start: pcnt=%d",pcnt);
-       for (int j = 0; j < pcnt; j++)
-               ServerInstance->Log(DEBUG,"    parameters[%d] = '%s'", j, parameters[j]);
 
        LastParse = "";
 
@@ -376,8 +374,6 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool
                {
                        unsigned char modechar = *letter;
 
-                       ServerInstance->Log(DEBUG,"Process letter %c", modechar);
-
                        switch (modechar)
                        {
                                /* NB:
@@ -642,13 +638,13 @@ bool ModeParser::DelMode(ModeHandler* mh)
        switch (mh->GetModeType())
        {
                case MODETYPE_USER:
-                       for (user_hash::iterator i = ServerInstance->clientlist.begin(); i != ServerInstance->clientlist.end(); i++)
+                       for (user_hash::iterator i = ServerInstance->clientlist->begin(); i != ServerInstance->clientlist->end(); i++)
                        {
                                mh->RemoveMode(i->second);
                        }
                break;
                case MODETYPE_CHANNEL:
-                       for (chan_hash::iterator i = ServerInstance->chanlist.begin(); i != ServerInstance->chanlist.end(); i++)
+                       for (chan_hash::iterator i = ServerInstance->chanlist->begin(); i != ServerInstance->chanlist->end(); i++)
                        {
                                mh->RemoveMode(i->second);
                        }