]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/irc.c
Remove unneded IRC_SetPenalty() calls
[ngircd-alex.git] / src / ngircd / irc.c
index 74b8a018cf1a5d8dc3da0541964748f186928562..35f1a59a8a06b4a6fe516948be098ea312374646 100644 (file)
@@ -346,18 +346,18 @@ IRC_KillClient(CLIENT *Client, CLIENT *From, const char *Nick, const char *Reaso
        CONN_ID my_conn, conn;
        CLIENT *c;
 
-       /* Inform other servers */
-       IRC_WriteStrServersPrefix(From ? Client : NULL,
-                                 From ? From : Client_ThisServer(),
-                                 "KILL %s :%s", Nick, Reason);
-
-       /* Do we know such a client? */
+       /* Do we know such a client in the network? */
        c = Client_Search(Nick);
        if (!c) {
-               LogDebug("Client with nick \"%s\" is unknown here.", Nick);
+               LogDebug("Client with nick \"%s\" is unknown, not forwaring.", Nick);
                return CONNECTED;
        }
 
+       /* Inform other servers */
+       IRC_WriteStrServersPrefix(From ? Client : NULL,
+                                 From ? From : Client_ThisServer(),
+                                 "KILL %s :%s", Nick, Reason);
+
        if (Client_Type(c) != CLIENT_USER && Client_Type(c) != CLIENT_GOTNICK) {
                /* Target of this KILL is not a regular user, this is
                 * invalid! So we ignore this case if we received a
@@ -478,9 +478,7 @@ Option_String(UNUSED CONN_ID Idx)
 #endif
 {
        static char option_txt[8];
-#ifdef ZLIB
        UINT16 options;
-#endif
 
        assert(Idx != NONE);
 
@@ -528,7 +526,6 @@ Send_Message(CLIENT * Client, REQUEST * Req, int ForceType, bool SendErrors)
        if (Req->argc > 2) {
                if (!SendErrors)
                        return CONNECTED;
-               IRC_SetPenalty(Client, 2);
                return IRC_WriteErrClient(Client, ERR_NEEDMOREPARAMS_MSG,
                                          Client_ID(Client), Req->command);
        }