mirror of
https://github.com/osmarks/ngircd.git
synced 2025-10-17 15:47:38 +00:00
- "NOTICE AUTH" und Statistiken werden im Strict-RFC-Modus nicht mehr erzeugt.
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
* Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
|
||||||
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
||||||
*
|
*
|
||||||
* $Id: conn.c,v 1.98 2002/11/28 16:56:20 alex Exp $
|
* $Id: conn.c,v 1.99 2002/11/29 13:13:42 alex Exp $
|
||||||
*
|
*
|
||||||
* connect.h: Verwaltung aller Netz-Verbindungen ("connections")
|
* connect.h: Verwaltung aller Netz-Verbindungen ("connections")
|
||||||
*/
|
*/
|
||||||
@@ -570,11 +570,13 @@ Conn_Close( CONN_ID Idx, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN InformClient )
|
|||||||
|
|
||||||
if( InformClient )
|
if( InformClient )
|
||||||
{
|
{
|
||||||
|
#ifndef STRICT_RFC
|
||||||
/* Statistik an Client melden, wenn User */
|
/* Statistik an Client melden, wenn User */
|
||||||
if(( c != NULL ) && ( Client_Type( c ) == CLIENT_USER ))
|
if(( c != NULL ) && ( Client_Type( c ) == CLIENT_USER ))
|
||||||
{
|
{
|
||||||
Conn_WriteStr( Idx, "NOTICE %s :%sConnection statistics: client %.1f kb, server %.1f kb.", Client_ThisServer( ), NOTICE_TXTPREFIX, (DOUBLE)My_Connections[Idx].bytes_in / 1024, (DOUBLE)My_Connections[Idx].bytes_out / 1024 );
|
Conn_WriteStr( Idx, "NOTICE %s :%sConnection statistics: client %.1f kb, server %.1f kb.", Client_ThisServer( ), NOTICE_TXTPREFIX, (DOUBLE)My_Connections[Idx].bytes_in / 1024, (DOUBLE)My_Connections[Idx].bytes_out / 1024 );
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
/* ERROR an Client schicken (von RFC so vorgesehen!) */
|
/* ERROR an Client schicken (von RFC so vorgesehen!) */
|
||||||
if( FwdMsg ) Conn_WriteStr( Idx, "ERROR :%s", FwdMsg );
|
if( FwdMsg ) Conn_WriteStr( Idx, "ERROR :%s", FwdMsg );
|
||||||
@@ -1122,7 +1124,9 @@ New_Connection( INT Sock )
|
|||||||
if( s )
|
if( s )
|
||||||
{
|
{
|
||||||
/* Sub-Prozess wurde asyncron gestartet */
|
/* Sub-Prozess wurde asyncron gestartet */
|
||||||
|
#ifndef STRICT_RFC
|
||||||
Conn_WriteStr( idx, "NOTICE AUTH :%sLooking up your hostname ...", NOTICE_TXTPREFIX );
|
Conn_WriteStr( idx, "NOTICE AUTH :%sLooking up your hostname ...", NOTICE_TXTPREFIX );
|
||||||
|
#endif
|
||||||
My_Connections[idx].res_stat = s;
|
My_Connections[idx].res_stat = s;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1160,7 +1164,9 @@ Read_Request( CONN_ID Idx )
|
|||||||
* Tritt ein Fehler auf, so wird der Socket geschlossen. */
|
* Tritt ein Fehler auf, so wird der Socket geschlossen. */
|
||||||
|
|
||||||
INT len, bsize;
|
INT len, bsize;
|
||||||
|
#ifdef USE_ZLIB
|
||||||
CLIENT *c;
|
CLIENT *c;
|
||||||
|
#endif
|
||||||
|
|
||||||
assert( Idx > NONE );
|
assert( Idx > NONE );
|
||||||
assert( My_Connections[Idx].sock > NONE );
|
assert( My_Connections[Idx].sock > NONE );
|
||||||
@@ -1662,7 +1668,9 @@ Read_Resolver_Result( INT r_fd )
|
|||||||
strcpy( My_Connections[i].host, result );
|
strcpy( My_Connections[i].host, result );
|
||||||
Client_SetHostname( c, result );
|
Client_SetHostname( c, result );
|
||||||
|
|
||||||
|
#ifndef STRICT_RFC
|
||||||
Conn_WriteStr( i, "NOTICE AUTH :%sGot your hostname.", NOTICE_TXTPREFIX );
|
Conn_WriteStr( i, "NOTICE AUTH :%sGot your hostname.", NOTICE_TXTPREFIX );
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user