2 cbc1e59f 2001-12-12 alex * ngIRCd -- The Next Generation IRC Daemon
3 03d971d9 2002-01-02 alex * Copyright (c)2001,2002 by Alexander Barton (alex@barton.de)
5 cbc1e59f 2001-12-12 alex * Dieses Programm ist freie Software. Sie koennen es unter den Bedingungen
6 cbc1e59f 2001-12-12 alex * der GNU General Public License (GPL), wie von der Free Software Foundation
7 cbc1e59f 2001-12-12 alex * herausgegeben, weitergeben und/oder modifizieren, entweder unter Version 2
8 cbc1e59f 2001-12-12 alex * der Lizenz oder (wenn Sie es wuenschen) jeder spaeteren Version.
9 cbc1e59f 2001-12-12 alex * Naehere Informationen entnehmen Sie bitter der Datei COPYING. Eine Liste
10 804b1ec4 2001-12-31 alex * der an ngIRCd beteiligten Autoren finden Sie in der Datei AUTHORS.
12 b2615bcc 2002-11-19 alex * $Id: conf.h,v 1.21 2002/11/19 12:50:20 alex Exp $
14 cbc1e59f 2001-12-12 alex * conf.h: Konfiguration des ngircd (Header)
18 cbc1e59f 2001-12-12 alex #ifndef __conf_h__
19 cbc1e59f 2001-12-12 alex #define __conf_h__
21 03d971d9 2002-01-02 alex #include <time.h>
23 ca33cbda 2002-03-12 alex #include "defines.h"
26 03d971d9 2002-01-02 alex typedef struct _Conf_Oper
28 d67d94ea 2002-03-10 alex CHAR name[CLIENT_PASS_LEN]; /* Name (ID) des IRC-OPs */
29 d67d94ea 2002-03-10 alex CHAR pwd[CLIENT_PASS_LEN]; /* Passwort */
30 03d971d9 2002-01-02 alex } CONF_OPER;
32 03d971d9 2002-01-02 alex typedef struct _Conf_Server
34 d67d94ea 2002-03-10 alex CHAR host[HOST_LEN]; /* Hostname */
35 d67d94ea 2002-03-10 alex CHAR ip[16]; /* IP-Adresse (von Resolver) */
36 d67d94ea 2002-03-10 alex CHAR name[CLIENT_ID_LEN]; /* IRC-Client-ID */
37 b2615bcc 2002-11-19 alex CHAR pwd_in[CLIENT_PASS_LEN]; /* Passwort, welches erwartet wird */
38 b2615bcc 2002-11-19 alex CHAR pwd_out[CLIENT_PASS_LEN]; /* An die Gegenseite zu sendendes Passwort */
39 d67d94ea 2002-03-10 alex INT port; /* Server-Port */
40 d67d94ea 2002-03-10 alex INT group; /* Gruppe des Servers */
41 d67d94ea 2002-03-10 alex time_t lasttry; /* Letzter Connect-Versuch */
42 d67d94ea 2002-03-10 alex RES_STAT *res_stat; /* Status des Resolver */
43 03d971d9 2002-01-02 alex } CONF_SERVER;
45 040f5422 2002-05-21 alex typedef struct _Conf_Channel
47 040f5422 2002-05-21 alex CHAR name[CHANNEL_NAME_LEN]; /* Name des Channel */
48 040f5422 2002-05-21 alex CHAR modes[CHANNEL_MODE_LEN]; /* Channel-Modes */
49 040f5422 2002-05-21 alex CHAR topic[CHANNEL_TOPIC_LEN]; /* Topic des Channels */
50 040f5422 2002-05-21 alex } CONF_CHANNEL;
53 03d971d9 2002-01-02 alex /* Name ("Nick") des Servers */
54 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_ServerName[CLIENT_ID_LEN];
56 4ded22b0 2002-09-16 alex /* Server-Info-Text */
57 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_ServerInfo[CLIENT_INFO_LEN];
59 ed406b4a 2002-01-03 alex /* Server-Passwort */
60 ed406b4a 2002-01-03 alex GLOBAL CHAR Conf_ServerPwd[CLIENT_PASS_LEN];
62 4ded22b0 2002-09-16 alex /* Admin-Info-Texte */
63 4ded22b0 2002-09-16 alex GLOBAL CHAR Conf_ServerAdmin1[CLIENT_INFO_LEN];
64 4ded22b0 2002-09-16 alex GLOBAL CHAR Conf_ServerAdmin2[CLIENT_INFO_LEN];
65 4ded22b0 2002-09-16 alex GLOBAL CHAR Conf_ServerAdminMail[CLIENT_INFO_LEN];
67 03d971d9 2002-01-02 alex /* Datei mit MOTD-Text */
68 03d971d9 2002-01-02 alex GLOBAL CHAR Conf_MotdFile[FNAME_LEN];
70 03d971d9 2002-01-02 alex /* Ports, auf denen der Server Verbindungen entgegen nimmt */
71 4cdc9815 2002-03-29 alex GLOBAL UINT Conf_ListenPorts[MAX_LISTEN_PORTS];
72 03d971d9 2002-01-02 alex GLOBAL INT Conf_ListenPorts_Count;
74 4cdc9815 2002-03-29 alex /* User- und Group-ID, zu denen der Daemon wechseln soll */
75 4cdc9815 2002-03-29 alex GLOBAL UINT Conf_UID;
76 4cdc9815 2002-03-29 alex GLOBAL UINT Conf_GID;
78 03d971d9 2002-01-02 alex /* Timeouts fuer PING und PONG */
79 03d971d9 2002-01-02 alex GLOBAL INT Conf_PingTimeout;
80 03d971d9 2002-01-02 alex GLOBAL INT Conf_PongTimeout;
82 03d971d9 2002-01-02 alex /* Sekunden zwischen Verbindungsversuchen zu anderen Servern */
83 03d971d9 2002-01-02 alex GLOBAL INT Conf_ConnectRetry;
85 03d971d9 2002-01-02 alex /* Operatoren */
86 03d971d9 2002-01-02 alex GLOBAL CONF_OPER Conf_Oper[MAX_OPERATORS];
87 03d971d9 2002-01-02 alex GLOBAL INT Conf_Oper_Count;
89 03d971d9 2002-01-02 alex /* Server */
90 03d971d9 2002-01-02 alex GLOBAL CONF_SERVER Conf_Server[MAX_SERVERS];
91 03d971d9 2002-01-02 alex GLOBAL INT Conf_Server_Count;
93 040f5422 2002-05-21 alex /* Vorkonfigurierte Channels */
94 040f5422 2002-05-21 alex GLOBAL CONF_CHANNEL Conf_Channel[MAX_DEFCHANNELS];
95 040f5422 2002-05-21 alex GLOBAL INT Conf_Channel_Count;
97 7e1b3b91 2002-09-02 alex /* Koennen IRC OPs immer Modes setzen? */
98 7e1b3b91 2002-09-02 alex GLOBAL BOOLEAN Conf_OperCanMode;
100 650f9a2d 2002-11-02 alex /* Maximale Anzahl von Verbindungen */
101 650f9a2d 2002-11-02 alex GLOBAL LONG Conf_MaxConnections;
104 c2f60abe 2002-05-27 alex GLOBAL VOID Conf_Init PARAMS((VOID ));
105 c2f60abe 2002-05-27 alex GLOBAL INT Conf_Test PARAMS((VOID ));
111 cbc1e59f 2001-12-12 alex /* -eof- */