about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2002-03-12 23:42:59 +0000
committerAlexander Barton <alex@barton.de>2002-03-12 23:42:59 +0000
commit9146fa253459caf33fe8420b969e8f63d307caa0 (patch)
treeb0f33473252930f620d27978fcdc84faba946914 /src
parent882c91280e46c62274ad6b77677d02fba342efda (diff)
downloadngircd-9146fa253459caf33fe8420b969e8f63d307caa0.tar.gz
ngircd-9146fa253459caf33fe8420b969e8f63d307caa0.zip
- Projektdatei an neue Quellcode-Struktur angepasst.
Diffstat (limited to 'src')
-rw-r--r--src/ngircd/client.c9
-rw-r--r--src/ngircd/conn.c10
2 files changed, 9 insertions, 10 deletions
diff --git a/src/ngircd/client.c b/src/ngircd/client.c
index bb0e87ef..0257e964 100644
--- a/src/ngircd/client.c
+++ b/src/ngircd/client.c
@@ -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.48 2002/03/12 14:37:52 alex Exp $
+ * $Id: client.c,v 1.49 2002/03/12 23:42:59 alex Exp $
  *
  * client.c: Management aller Clients
  *
@@ -188,11 +188,8 @@ GLOBAL VOID Client_Destroy( CLIENT *Client, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN
 	else txt = FwdMsg;
 	if( ! txt ) txt = "Reason unknown.";
 
-	if( Client->type == CLIENT_SERVER )
-	{
-		/* Netz-Split-Nachricht vorbereiten */
-		sprintf( msg, "%s | %s", Client_ID( Client ), Client_ID( Client_TopServer( Client ) ? Client_TopServer( Client ) : Client_ThisServer( )));
-	}
+	/* Netz-Split-Nachricht vorbereiten */
+	if( Client->type == CLIENT_SERVER ) sprintf( msg, "%s: lost server %s", This_Server->id, Client->id );
 
 	last = NULL;
 	c = My_Clients;
diff --git a/src/ngircd/conn.c b/src/ngircd/conn.c
index e7a75669..639f827f 100644
--- a/src/ngircd/conn.c
+++ b/src/ngircd/conn.c
@@ -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: conn.c,v 1.52 2002/03/12 14:37:52 alex Exp $
+ * $Id: conn.c,v 1.53 2002/03/12 23:42:59 alex Exp $
  *
  * connect.h: Verwaltung aller Netz-Verbindungen ("connections")
  */
@@ -850,8 +850,10 @@ LOCAL VOID Check_Servers( VOID )
 		/* Haben wir schon eine Verbindung? */
 		for( n = 0; n < MAX_CONNECTIONS; n++ )
 		{
+			if( My_Connections[n].sock == NONE ) continue;
+			
 			/* Verbindung zu diesem Server? */
-			if(( My_Connections[n].sock != NONE ) && ( My_Connections[n].our_server == i ))
+			if( My_Connections[n].our_server == i )
 			{
 				/* Komplett aufgebaute Verbindung? */
 				if( My_Connections[n].sock > NONE ) break;
@@ -861,9 +863,9 @@ LOCAL VOID Check_Servers( VOID )
 			}
 
 			/* Verbindung in dieser Server-Gruppe? */
-			if(( My_Connections[n].sock != NONE ) && ( My_Connections[n].our_server != NONE ))
+			if(( My_Connections[n].our_server != NONE ) && ( Conf_Server[i].group != NONE ))
 			{
-				if( Conf_Server[n].group == Conf_Server[i].group != NONE ) break;
+				if( Conf_Server[My_Connections[n].our_server].group == Conf_Server[i].group ) break;
 			}
 		}
 		if( n < MAX_CONNECTIONS ) continue;