]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/userprocess.cpp
Rename quietban to muteban, change character to +b m:, this way it fits with cmode...
[user/henk/code/inspircd.git] / src / userprocess.cpp
index 286135f22e223878a180d9c4f1396d531fc67c44..3dc3143de02abaa8b441813e695c423147499700 100644 (file)
 
 void FloodQuitUserHandler::Call(User* current)
 {
-       Server->Logs->Log("USERS",DEFAULT,"Excess flood from: %s@%s", current->ident, current->host);
+       Server->Logs->Log("USERS",DEFAULT,"Excess flood from: %s@%s", current->ident.c_str(), current->host.c_str());
        Server->SNO->WriteToSnoMask('f',"Excess flood from: %s%s%s@%s",
-                       current->registered == REG_ALL ? current->nick : "",
-                       current->registered == REG_ALL ? "!" : "", current->ident, current->host);
+                       current->registered == REG_ALL ? current->nick.c_str() : "",
+                       current->registered == REG_ALL ? "!" : "", current->ident.c_str(), current->host.c_str());
        Server->Users->QuitUser(current, "Excess flood");
 
        if (current->registered != REG_ALL)
@@ -120,7 +120,7 @@ void ProcessUserHandler::Call(User* cu)
                                                        Server->FloodQuitUser(current);
                                                else
                                                {
-                                                       current->WriteServ("NOTICE %s :Your previous line was too long and was not delivered (Over %d chars) Please shorten it.", current->nick, MAXBUF-2);
+                                                       current->WriteServ("NOTICE %s :Your previous line was too long and was not delivered (Over %d chars) Please shorten it.", current->nick.c_str(), MAXBUF-2);
                                                        current->recvq.clear();
                                                }
                                        }
@@ -171,6 +171,9 @@ void InspIRCd::DoBackgroundUserStuff()
        {
                User *curr = *count2;
 
+               if (curr->quitting)
+                       continue;
+
                if (curr->Penalty)
                {
                        curr->Penalty--;