mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-31 22:13:00 +00:00 
			
		
		
		
	- einige Log-Meldungen werden nun auch als Server Notice verschickt.
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: client.c,v 1.52 2002/03/25 19:11:01 alex Exp $ |  * $Id: client.c,v 1.53 2002/03/27 20:52:58 alex Exp $ | ||||||
|  * |  * | ||||||
|  * client.c: Management aller Clients |  * client.c: Management aller Clients | ||||||
|  * |  * | ||||||
| @@ -245,8 +245,8 @@ GLOBAL VOID Client_Destroy( CLIENT *Client, CHAR *LogMsg, CHAR *FwdMsg, BOOLEAN | |||||||
| 			{ | 			{ | ||||||
| 				if( c != This_Server ) | 				if( c != This_Server ) | ||||||
| 				{ | 				{ | ||||||
| 					if( c->conn_id != NONE ) Log( LOG_NOTICE, "Server \"%s\" unregistered (connection %d): %s", c->id, c->conn_id, txt ); | 					if( c->conn_id != NONE ) Log( LOG_NOTICE|LOG_snotice, "Server \"%s\" unregistered (connection %d): %s", c->id, c->conn_id, txt ); | ||||||
| 					else Log( LOG_NOTICE, "Server \"%s\" unregistered: %s", c->id, txt ); | 					else Log( LOG_NOTICE|LOG_snotice, "Server \"%s\" unregistered: %s", c->id, txt ); | ||||||
| 				} | 				} | ||||||
|  |  | ||||||
| 				/* andere Server informieren */ | 				/* andere Server informieren */ | ||||||
|   | |||||||
| @@ -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: irc-oper.c,v 1.2 2002/03/12 14:37:52 alex Exp $ |  * $Id: irc-oper.c,v 1.3 2002/03/27 20:52:58 alex Exp $ | ||||||
|  * |  * | ||||||
|  * irc-oper.c: IRC-Operator-Befehle |  * irc-oper.c: IRC-Operator-Befehle | ||||||
|  */ |  */ | ||||||
| @@ -68,7 +68,7 @@ GLOBAL BOOLEAN IRC_OPER( CLIENT *Client, REQUEST *Req ) | |||||||
| 		IRC_WriteStrServersPrefix( NULL, Client, "MODE %s :+o", Client_ID( Client )); | 		IRC_WriteStrServersPrefix( NULL, Client, "MODE %s :+o", Client_ID( Client )); | ||||||
| 	} | 	} | ||||||
|  |  | ||||||
| 	if( ! Client_OperByMe( Client )) Log( LOG_NOTICE, "Got valid OPER from \"%s\", user is an IRC operator now.", Client_Mask( Client )); | 	if( ! Client_OperByMe( Client )) Log( LOG_NOTICE|LOG_snotice, "Got valid OPER from \"%s\", user is an IRC operator now.", Client_Mask( Client )); | ||||||
|  |  | ||||||
| 	Client_SetOperByMe( Client, TRUE ); | 	Client_SetOperByMe( Client, TRUE ); | ||||||
| 	return IRC_WriteStrClient( Client, RPL_YOUREOPER_MSG, Client_ID( Client )); | 	return IRC_WriteStrClient( Client, RPL_YOUREOPER_MSG, Client_ID( Client )); | ||||||
| @@ -87,7 +87,7 @@ GLOBAL BOOLEAN IRC_DIE( CLIENT *Client, REQUEST *Req ) | |||||||
|  |  | ||||||
| 	if(( ! Client_HasMode( Client, 'o' )) || ( ! Client_OperByMe( Client ))) return IRC_WriteStrClient( Client, ERR_NOPRIVILEGES_MSG, Client_ID( Client )); | 	if(( ! Client_HasMode( Client, 'o' )) || ( ! Client_OperByMe( Client ))) return IRC_WriteStrClient( Client, ERR_NOPRIVILEGES_MSG, Client_ID( Client )); | ||||||
|  |  | ||||||
| 	Log( LOG_NOTICE, "Got DIE command from \"%s\", going down!", Client_Mask( Client )); | 	Log( LOG_NOTICE|LOG_snotice, "Got DIE command from \"%s\", going down!", Client_Mask( Client )); | ||||||
| 	NGIRCd_Quit = TRUE; | 	NGIRCd_Quit = TRUE; | ||||||
| 	return CONNECTED; | 	return CONNECTED; | ||||||
| } /* IRC_DIE */ | } /* IRC_DIE */ | ||||||
| @@ -105,7 +105,7 @@ GLOBAL BOOLEAN IRC_RESTART( CLIENT *Client, REQUEST *Req ) | |||||||
|  |  | ||||||
| 	if(( ! Client_HasMode( Client, 'o' )) || ( ! Client_OperByMe( Client ))) return IRC_WriteStrClient( Client, ERR_NOPRIVILEGES_MSG, Client_ID( Client )); | 	if(( ! Client_HasMode( Client, 'o' )) || ( ! Client_OperByMe( Client ))) return IRC_WriteStrClient( Client, ERR_NOPRIVILEGES_MSG, Client_ID( Client )); | ||||||
|  |  | ||||||
| 	Log( LOG_NOTICE, "Got RESTART command from \"%s\", going down!", Client_Mask( Client )); | 	Log( LOG_NOTICE|LOG_snotice, "Got RESTART command from \"%s\", going down!", Client_Mask( Client )); | ||||||
| 	NGIRCd_Restart = TRUE; | 	NGIRCd_Restart = TRUE; | ||||||
| 	return CONNECTED; | 	return CONNECTED; | ||||||
| } /* IRC_RESTART */ | } /* IRC_RESTART */ | ||||||
|   | |||||||
| @@ -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: irc-server.c,v 1.7 2002/03/25 17:12:22 alex Exp $ |  * $Id: irc-server.c,v 1.8 2002/03/27 20:52:58 alex Exp $ | ||||||
|  * |  * | ||||||
|  * irc-server.c: IRC-Befehle fuer Server-Links |  * irc-server.c: IRC-Befehle fuer Server-Links | ||||||
|  */ |  */ | ||||||
| @@ -97,7 +97,7 @@ GLOBAL BOOLEAN IRC_SERVER( CLIENT *Client, REQUEST *Req ) | |||||||
| 		} | 		} | ||||||
| 		else  Client_SetToken( Client, atoi( Req->argv[1] )); | 		else  Client_SetToken( Client, atoi( Req->argv[1] )); | ||||||
|  |  | ||||||
| 		Log( LOG_NOTICE, "Server \"%s\" registered (connection %d, 1 hop - direct link).", Client_ID( Client ), Client_Conn( Client )); | 		Log( LOG_NOTICE|LOG_snotice, "Server \"%s\" registered (connection %d, 1 hop - direct link).", Client_ID( Client ), Client_Conn( Client )); | ||||||
|  |  | ||||||
| 		Client_SetType( Client, CLIENT_SERVER ); | 		Client_SetType( Client, CLIENT_SERVER ); | ||||||
|  |  | ||||||
| @@ -222,7 +222,7 @@ GLOBAL BOOLEAN IRC_SERVER( CLIENT *Client, REQUEST *Req ) | |||||||
| 		/* Log-Meldung zusammenbauen und ausgeben */ | 		/* Log-Meldung zusammenbauen und ausgeben */ | ||||||
| 		if(( Client_Hops( c ) > 1 ) && ( Req->prefix[0] )) sprintf( str, "connected to %s, ", Client_ID( from )); | 		if(( Client_Hops( c ) > 1 ) && ( Req->prefix[0] )) sprintf( str, "connected to %s, ", Client_ID( from )); | ||||||
| 		else strcpy( str, "" ); | 		else strcpy( str, "" ); | ||||||
| 		Log( LOG_NOTICE, "Server \"%s\" registered (via %s, %s%d hop%s).", Client_ID( c ), Client_ID( Client ), str, Client_Hops( c ), Client_Hops( c ) > 1 ? "s": "" ); | 		Log( LOG_NOTICE|LOG_snotice, "Server \"%s\" registered (via %s, %s%d hop%s).", Client_ID( c ), Client_ID( Client ), str, Client_Hops( c ), Client_Hops( c ) > 1 ? "s": "" ); | ||||||
|  |  | ||||||
| 		/* Andere Server informieren */ | 		/* Andere Server informieren */ | ||||||
| 		IRC_WriteStrServersPrefix( Client, from, "SERVER %s %d %d :%s", Client_ID( c ), Client_Hops( c ) + 1, Client_MyToken( c ), Client_Info( c )); | 		IRC_WriteStrServersPrefix( Client, from, "SERVER %s %d %d :%s", Client_ID( c ), Client_Hops( c ) + 1, Client_MyToken( c ), Client_Info( c )); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Alexander Barton
					Alexander Barton