]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/conn.c
Clean up Validate_Prefix(); don't send punctuation in ERROR commands
[ngircd-alex.git] / src / ngircd / conn.c
index af79c13feddbbb208a2b887aafef7e73a5e4c95f..032a6e91e08b83f41bfd220ad8d527ddeb76f6c1 100644 (file)
@@ -980,7 +980,7 @@ Conn_Close( CONN_ID Idx, const char *LogMsg, const char *FwdMsg, bool InformClie
                if (FwdMsg)
                        Conn_WriteStr(Idx, "ERROR :%s", FwdMsg);
                else
-                       Conn_WriteStr(Idx, "ERROR :Closing connection.");
+                       Conn_WriteStr(Idx, "ERROR :Closing connection");
        }
 
        /* Try to write out the write buffer. Note: Handle_Write() eventually
@@ -1276,7 +1276,7 @@ New_Connection(int Sock)
                    "Refused connection from %s: too may connections (%ld) from this IP address!",
                    ip_str, cnt);
                Simple_Message(new_sock,
-                              "ERROR :Connection refused, too many connections from your IP address!");
+                              "ERROR :Connection refused, too many connections from your IP address");
                close(new_sock);
                return -1;
        }