1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-10-27 20:36:18 +00:00

Removed some debug code; translated some source code comments.

This commit is contained in:
Alexander Barton 2004-01-19 21:54:59 +00:00
parent c53903eb3f
commit e9b0ec9148

View File

@ -14,7 +14,7 @@
#include "portab.h" #include "portab.h"
static char UNUSED id[] = "$Id: ngircd.c,v 1.82 2004/01/17 03:15:45 alex Exp $"; static char UNUSED id[] = "$Id: ngircd.c,v 1.83 2004/01/19 21:54:59 alex Exp $";
#include "imp.h" #include "imp.h"
#include <assert.h> #include <assert.h>
@ -422,30 +422,26 @@ NGIRCd_Rehash( VOID )
Log( LOG_NOTICE|LOG_snotice, "Re-reading configuration NOW!" ); Log( LOG_NOTICE|LOG_snotice, "Re-reading configuration NOW!" );
NGIRCd_SignalRehash = FALSE; NGIRCd_SignalRehash = FALSE;
/* Alle Listen-Sockets schliessen */ /* Close down all listening sockets */
Conn_ExitListeners( ); Conn_ExitListeners( );
/* Alten Server-Namen merken */ /* Remember old server name */
#ifdef DEBUG
assert( sizeof( old_name ) == sizeof( Conf_ServerName ));
#endif
strcpy( old_name, Conf_ServerName ); strcpy( old_name, Conf_ServerName );
/* Konfiguration neu lesen ... */ /* Re-read configuration ... */
Conf_Rehash( ); Conf_Rehash( );
/* Alten Server-Namen wiederherstellen: dieser /* Recover old server name: it can't be changed during run-time */
* kann nicht zur Laufzeit geaendert werden ... */
if( strcmp( old_name, Conf_ServerName ) != 0 ) if( strcmp( old_name, Conf_ServerName ) != 0 )
{ {
strcpy( Conf_ServerName, old_name ); strcpy( Conf_ServerName, old_name );
Log( LOG_ERR, "Can't change \"ServerName\" on runtime! Ignored new name." ); Log( LOG_ERR, "Can't change \"ServerName\" on runtime! Ignored new name." );
} }
/* neue pre-defined Channel anlegen: */ /* Create new pre-defined channels */
Channel_InitPredefined( ); Channel_InitPredefined( );
/* Listen-Sockets neu anlegen: */ /* Start listening on sockets */
Conn_InitListeners( ); Conn_InitListeners( );
/* Sync configuration with established connections */ /* Sync configuration with established connections */