mirror of
				https://github.com/osmarks/ngircd.git
				synced 2025-10-30 21:42:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			107 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			107 lines
		
	
	
		
			2.8 KiB
		
	
	
	
		
			C
		
	
	
	
	
	
| /*
 | |
|  * ngIRCd -- The Next Generation IRC Daemon
 | |
|  * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
 | |
|  *
 | |
|  * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
 | |
|  * der GNU General Public License (GPL), wie von der Free Software Foundation
 | |
|  * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
 | |
|  * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
 | |
|  * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
 | |
|  * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
 | |
|  *
 | |
|  * $Id: conf.h,v 1.19 2002/09/16 09:13:40 alex Exp $
 | |
|  *
 | |
|  * conf.h: Konfiguration des ngircd (Header)
 | |
|  */
 | |
| 
 | |
| 
 | |
| #ifndef __conf_h__
 | |
| #define __conf_h__
 | |
| 
 | |
| #include <time.h>
 | |
| 
 | |
| #include "defines.h"
 | |
| 
 | |
| 
 | |
| typedef struct _Conf_Oper
 | |
| {
 | |
| 	CHAR name[CLIENT_PASS_LEN];	/* Name (ID) des IRC-OPs */
 | |
| 	CHAR pwd[CLIENT_PASS_LEN];	/* Passwort */
 | |
| } CONF_OPER;
 | |
| 
 | |
| typedef struct _Conf_Server
 | |
| {
 | |
| 	CHAR host[HOST_LEN];		/* Hostname */
 | |
| 	CHAR ip[16];			/* IP-Adresse (von Resolver) */
 | |
| 	CHAR name[CLIENT_ID_LEN];	/* IRC-Client-ID */
 | |
| 	CHAR pwd[CLIENT_PASS_LEN];	/* Passwort */
 | |
| 	INT port;			/* Server-Port */
 | |
| 	INT group;			/* Gruppe des Servers */
 | |
| 	time_t lasttry;			/* Letzter Connect-Versuch */
 | |
| 	RES_STAT *res_stat;		/* Status des Resolver */
 | |
| } CONF_SERVER;
 | |
| 
 | |
| typedef struct _Conf_Channel
 | |
| {
 | |
| 	CHAR name[CHANNEL_NAME_LEN];	/* Name des Channel */
 | |
| 	CHAR modes[CHANNEL_MODE_LEN];	/* Channel-Modes */
 | |
| 	CHAR topic[CHANNEL_TOPIC_LEN];	/* Topic des Channels */
 | |
| } CONF_CHANNEL;
 | |
| 
 | |
| 
 | |
| /* Name ("Nick") des Servers */
 | |
| GLOBAL CHAR Conf_ServerName[CLIENT_ID_LEN];
 | |
| 
 | |
| /* Server-Info-Text */
 | |
| GLOBAL CHAR Conf_ServerInfo[CLIENT_INFO_LEN];
 | |
| 
 | |
| /* Server-Passwort */
 | |
| GLOBAL CHAR Conf_ServerPwd[CLIENT_PASS_LEN];
 | |
| 
 | |
| /* Admin-Info-Texte */
 | |
| GLOBAL CHAR Conf_ServerAdmin1[CLIENT_INFO_LEN];
 | |
| GLOBAL CHAR Conf_ServerAdmin2[CLIENT_INFO_LEN];
 | |
| GLOBAL CHAR Conf_ServerAdminMail[CLIENT_INFO_LEN];
 | |
| 
 | |
| /* Datei mit MOTD-Text */
 | |
| GLOBAL CHAR Conf_MotdFile[FNAME_LEN];
 | |
| 
 | |
| /* Ports, auf denen der Server Verbindungen entgegen nimmt */
 | |
| GLOBAL UINT Conf_ListenPorts[MAX_LISTEN_PORTS];
 | |
| GLOBAL INT Conf_ListenPorts_Count;
 | |
| 
 | |
| /* User- und Group-ID, zu denen der Daemon wechseln soll */
 | |
| GLOBAL UINT Conf_UID;
 | |
| GLOBAL UINT Conf_GID;
 | |
| 
 | |
| /* Timeouts fuer PING und PONG */
 | |
| GLOBAL INT Conf_PingTimeout;
 | |
| GLOBAL INT Conf_PongTimeout;
 | |
| 
 | |
| /* Sekunden zwischen Verbindungsversuchen zu anderen Servern */
 | |
| GLOBAL INT Conf_ConnectRetry;
 | |
| 
 | |
| /* Operatoren */
 | |
| GLOBAL CONF_OPER Conf_Oper[MAX_OPERATORS];
 | |
| GLOBAL INT Conf_Oper_Count;
 | |
| 
 | |
| /* Server */
 | |
| GLOBAL CONF_SERVER Conf_Server[MAX_SERVERS];
 | |
| GLOBAL INT Conf_Server_Count;
 | |
| 
 | |
| /* Vorkonfigurierte Channels */
 | |
| GLOBAL CONF_CHANNEL Conf_Channel[MAX_DEFCHANNELS];
 | |
| GLOBAL INT Conf_Channel_Count;
 | |
| 
 | |
| /* Koennen IRC OPs immer Modes setzen? */
 | |
| GLOBAL BOOLEAN Conf_OperCanMode;
 | |
| 
 | |
| GLOBAL VOID Conf_Init PARAMS((VOID ));
 | |
| GLOBAL INT Conf_Test PARAMS((VOID ));
 | |
| 
 | |
| 
 | |
| #endif
 | |
| 
 | |
| 
 | |
| /* -eof- */
 | 
