]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/userprocess.cpp
Last of the -Wshadow fixes.
[user/henk/code/inspircd.git] / src / userprocess.cpp
index 7a1938d2c5926fcfa2449d8d0298d42e88f213e2..dd1ca179981c2a3e59cc97dbece77220667ff940 100644 (file)
@@ -167,7 +167,7 @@ void InspIRCd::DoBackgroundUserStuff()
        /*
         * loop over all local users..
         */
-       for (std::vector<User*>::iterator count2 = local_users.begin(); count2 != local_users.end(); count2++)
+       for (std::vector<User*>::iterator count2 = this->Users->local_users.begin(); count2 != this->Users->local_users.end(); count2++)
        {
                User *curr = *count2;
 
@@ -190,7 +190,6 @@ void InspIRCd::DoBackgroundUserStuff()
                         * registration timeout -- didnt send USER/NICK/HOST
                         * in the time specified in their connection class.
                         */
-                       curr->muted = true;
                        User::QuitUser(this, curr, "Registration timeout");
                        continue;
                }
@@ -220,7 +219,6 @@ void InspIRCd::DoBackgroundUserStuff()
                                time_t time = this->Time(false) - (curr->nping - curr->MyClass->GetPingTime());
                                char message[MAXBUF];
                                snprintf(message, MAXBUF, "Ping timeout: %ld second%s", (long)time, time > 1 ? "s" : "");
-                               curr->muted = true;
                                curr->lastping = 1;
                                curr->nping = TIME + curr->MyClass->GetPingTime();
                                User::QuitUser(this, curr, message);