]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/client.c
fix ngt_TrimStr(), fix format string
[ngircd-alex.git] / src / ngircd / client.c
index 67758ea8b24e843ae82067aa1f67a5f10b23585f..30e214c440c74f95a2b563e313884884ae9a3498 100644 (file)
@@ -17,7 +17,7 @@
 
 #include "portab.h"
 
-static char UNUSED id[] = "$Id: client.c,v 1.88 2006/03/11 10:33:30 fw Exp $";
+static char UNUSED id[] = "$Id: client.c,v 1.90 2006/03/24 23:25:38 fw Exp $";
 
 #include "imp.h"
 #include <assert.h>
@@ -321,11 +321,9 @@ Client_Destroy( CLIENT *Client, char *LogMsg, char *FwdMsg, bool SendQuit )
                                {
                                        if( c->id[0] ) Log( LOG_NOTICE, "Client \"%s\" unregistered (connection %d): %s", c->id, c->conn_id, txt );
                                        else Log( LOG_NOTICE, "Client unregistered (connection %d): %s", c->conn_id, txt );
-                               }
-                               else
-                               {
-                                       if( c->id[0] ) Log( LOG_WARNING, "Unregistered unknown client \"%s\": %s", c->id, txt );
-                                       else Log( LOG_WARNING, "Unregistered unknown client: %s", c->id, txt );
+                               } else {
+                                       Log(LOG_WARNING, "Unregistered unknown client \"%s\": %s",
+                                                               c->id[0] ? c->id : "(No Nick)", txt );
                                }
                        }
 
@@ -568,7 +566,7 @@ Client_ModeDel( CLIENT *Client, char Mode )
 GLOBAL CLIENT *
 Client_GetFromConn( CONN_ID Idx )
 {
-       /* return Client-Structure that belongs to the local Connection Idx gehoert.
+       /* return Client-Structure that belongs to the local Connection Idx.
         * If none is found, return NULL.
         */