2001-12-12 18:18:20 +01:00
|
|
|
/*
|
|
|
|
* ngIRCd -- The Next Generation IRC Daemon
|
2002-01-02 03:44:36 +01:00
|
|
|
* Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
|
2001-12-12 18:18:20 +01:00
|
|
|
*
|
|
|
|
* 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
|
2001-12-31 03:18:51 +01:00
|
|
|
* der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
|
2001-12-12 18:18:20 +01:00
|
|
|
*
|
2002-11-19 13:50:20 +01:00
|
|
|
* $Id: conf.h,v 1.21 2002/11/19 12:50:20 alex Exp $
|
2001-12-12 18:18:20 +01:00
|
|
|
*
|
|
|
|
* conf.h: Konfiguration des ngircd (Header)
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
#ifndef __conf_h__
|
|
|
|
#define __conf_h__
|
|
|
|
|
2002-01-02 03:44:36 +01:00
|
|
|
#include <time.h>
|
|
|
|
|
2002-03-12 15:37:51 +01:00
|
|
|
#include "defines.h"
|
2002-02-28 00:23:53 +01:00
|
|
|
|
2002-01-02 03:44:36 +01:00
|
|
|
|
|
|
|
typedef struct _Conf_Oper
|
|
|
|
{
|
2002-03-10 18:50:48 +01:00
|
|
|
CHAR name[CLIENT_PASS_LEN]; /* Name (ID) des IRC-OPs */
|
|
|
|
CHAR pwd[CLIENT_PASS_LEN]; /* Passwort */
|
2002-01-02 03:44:36 +01:00
|
|
|
} CONF_OPER;
|
|
|
|
|
|
|
|
typedef struct _Conf_Server
|
|
|
|
{
|
2002-03-10 18:50:48 +01:00
|
|
|
CHAR host[HOST_LEN]; /* Hostname */
|
|
|
|
CHAR ip[16]; /* IP-Adresse (von Resolver) */
|
|
|
|
CHAR name[CLIENT_ID_LEN]; /* IRC-Client-ID */
|
2002-11-19 13:50:20 +01:00
|
|
|
CHAR pwd_in[CLIENT_PASS_LEN]; /* Passwort, welches erwartet wird */
|
|
|
|
CHAR pwd_out[CLIENT_PASS_LEN]; /* An die Gegenseite zu sendendes Passwort */
|
2002-03-10 18:50:48 +01:00
|
|
|
INT port; /* Server-Port */
|
|
|
|
INT group; /* Gruppe des Servers */
|
|
|
|
time_t lasttry; /* Letzter Connect-Versuch */
|
|
|
|
RES_STAT *res_stat; /* Status des Resolver */
|
2002-01-02 03:44:36 +01:00
|
|
|
} CONF_SERVER;
|
|
|
|
|
2002-05-21 02:10:16 +02:00
|
|
|
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;
|
|
|
|
|
2002-01-02 03:44:36 +01:00
|
|
|
|
|
|
|
/* Name ("Nick") des Servers */
|
|
|
|
GLOBAL CHAR Conf_ServerName[CLIENT_ID_LEN];
|
|
|
|
|
2002-09-16 11:13:40 +02:00
|
|
|
/* Server-Info-Text */
|
2002-01-02 03:44:36 +01:00
|
|
|
GLOBAL CHAR Conf_ServerInfo[CLIENT_INFO_LEN];
|
2001-12-12 18:18:20 +01:00
|
|
|
|
2002-01-03 03:27:20 +01:00
|
|
|
/* Server-Passwort */
|
|
|
|
GLOBAL CHAR Conf_ServerPwd[CLIENT_PASS_LEN];
|
|
|
|
|
2002-09-16 11:13:40 +02:00
|
|
|
/* Admin-Info-Texte */
|
|
|
|
GLOBAL CHAR Conf_ServerAdmin1[CLIENT_INFO_LEN];
|
|
|
|
GLOBAL CHAR Conf_ServerAdmin2[CLIENT_INFO_LEN];
|
|
|
|
GLOBAL CHAR Conf_ServerAdminMail[CLIENT_INFO_LEN];
|
|
|
|
|
2002-01-02 03:44:36 +01:00
|
|
|
/* Datei mit MOTD-Text */
|
|
|
|
GLOBAL CHAR Conf_MotdFile[FNAME_LEN];
|
2001-12-26 23:48:53 +01:00
|
|
|
|
2002-01-02 03:44:36 +01:00
|
|
|
/* Ports, auf denen der Server Verbindungen entgegen nimmt */
|
2002-03-29 23:53:59 +01:00
|
|
|
GLOBAL UINT Conf_ListenPorts[MAX_LISTEN_PORTS];
|
2002-01-02 03:44:36 +01:00
|
|
|
GLOBAL INT Conf_ListenPorts_Count;
|
2001-12-26 23:48:53 +01:00
|
|
|
|
2002-03-29 23:53:59 +01:00
|
|
|
/* User- und Group-ID, zu denen der Daemon wechseln soll */
|
|
|
|
GLOBAL UINT Conf_UID;
|
|
|
|
GLOBAL UINT Conf_GID;
|
|
|
|
|
2002-01-02 03:44:36 +01:00
|
|
|
/* Timeouts fuer PING und PONG */
|
|
|
|
GLOBAL INT Conf_PingTimeout;
|
|
|
|
GLOBAL INT Conf_PongTimeout;
|
2001-12-26 23:48:53 +01:00
|
|
|
|
2002-01-02 03:44:36 +01:00
|
|
|
/* Sekunden zwischen Verbindungsversuchen zu anderen Servern */
|
|
|
|
GLOBAL INT Conf_ConnectRetry;
|
2001-12-26 23:48:53 +01:00
|
|
|
|
2002-01-02 03:44:36 +01:00
|
|
|
/* Operatoren */
|
|
|
|
GLOBAL CONF_OPER Conf_Oper[MAX_OPERATORS];
|
|
|
|
GLOBAL INT Conf_Oper_Count;
|
2001-12-31 03:18:51 +01:00
|
|
|
|
2002-01-02 03:44:36 +01:00
|
|
|
/* Server */
|
|
|
|
GLOBAL CONF_SERVER Conf_Server[MAX_SERVERS];
|
|
|
|
GLOBAL INT Conf_Server_Count;
|
2001-12-26 04:19:57 +01:00
|
|
|
|
2002-05-21 02:10:16 +02:00
|
|
|
/* Vorkonfigurierte Channels */
|
|
|
|
GLOBAL CONF_CHANNEL Conf_Channel[MAX_DEFCHANNELS];
|
|
|
|
GLOBAL INT Conf_Channel_Count;
|
|
|
|
|
2002-09-02 16:59:17 +02:00
|
|
|
/* Koennen IRC OPs immer Modes setzen? */
|
|
|
|
GLOBAL BOOLEAN Conf_OperCanMode;
|
2001-12-26 04:19:57 +01:00
|
|
|
|
2002-11-02 23:58:41 +01:00
|
|
|
/* Maximale Anzahl von Verbindungen */
|
|
|
|
GLOBAL LONG Conf_MaxConnections;
|
|
|
|
|
|
|
|
|
2002-05-27 15:09:26 +02:00
|
|
|
GLOBAL VOID Conf_Init PARAMS((VOID ));
|
|
|
|
GLOBAL INT Conf_Test PARAMS((VOID ));
|
2001-12-12 18:18:20 +01:00
|
|
|
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* -eof- */
|