]> arthur.barton.de Git - ngircd-alex.git/blobdiff - src/ngircd/client.c
- bessere Fehlermeldung, wenn malloc() fehl schlaegt.
[ngircd-alex.git] / src / ngircd / client.c
index 9cb472915bddaa19d98654604184fea33143e751..c38c386b936fc46fe1227e59dfbb4b2f4f71447f 100644 (file)
@@ -9,7 +9,7 @@
  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
  *
- * $Id: client.c,v 1.57 2002/06/01 14:36:43 alex Exp $
+ * $Id: client.c,v 1.59 2002/06/10 21:09:39 alex Exp $
  *
  * client.c: Management aller Clients
  *
@@ -102,7 +102,8 @@ Client_Exit( VOID )
        CLIENT *c, *next;
        INT cnt;
 
-       Client_Destroy( This_Server, "Server going down.", NULL, FALSE );
+       if( NGIRCd_Restart ) Client_Destroy( This_Server, "Server going down (restarting).", NULL, FALSE );
+       else Client_Destroy( This_Server, "Server going down.", NULL, FALSE );
        
        cnt = 0;
        c = My_Clients;
@@ -972,7 +973,7 @@ New_Client_Struct( VOID )
        c = malloc( sizeof( CLIENT ));
        if( ! c )
        {
-               Log( LOG_EMERG, "Can't allocate memory!" );
+               Log( LOG_EMERG, "Can't allocate memory! [New_Client_Struct]" );
                return NULL;
        }