2001-12-31 03:18:51 +01:00
|
|
|
/*
|
|
|
|
* ngIRCd -- The Next Generation IRC Daemon
|
2003-02-23 13:03:39 +01:00
|
|
|
* Copyright (c)2001-2003 by Alexander Barton (alex@barton.de)
|
2001-12-31 03:18:51 +01:00
|
|
|
*
|
2002-12-12 13:23:43 +01:00
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
* Please read the file COPYING, README and AUTHORS for more information.
|
2001-12-31 03:18:51 +01:00
|
|
|
*
|
2005-02-04 15:24:20 +01:00
|
|
|
* $Id: defines.h,v 1.49 2005/02/04 14:24:21 alex Exp $
|
2001-12-31 03:18:51 +01:00
|
|
|
*
|
2002-12-12 13:23:43 +01:00
|
|
|
* Global defines of ngIRCd.
|
2001-12-31 03:18:51 +01:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __defines_h__
|
|
|
|
#define __defines_h__
|
|
|
|
|
|
|
|
|
|
|
|
#define NONE -1
|
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define FNAME_LEN 256 /* max. length of file name */
|
2001-12-31 03:18:51 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define LINE_LEN 256 /* max. length of a line in the configuration file */
|
2001-12-31 03:18:51 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define HOST_LEN 256 /* max. lenght of fully qualified host names */
|
2001-12-31 03:18:51 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define MAX_LISTEN_PORTS 16 /* max. count of listening ports */
|
2002-01-02 03:44:36 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define MAX_OPERATORS 16 /* max. count of configurable operators */
|
2002-01-02 03:44:36 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define MAX_SERVERS 16 /* max. count of configurable servers ("peers") */
|
2002-01-02 03:44:36 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define MAX_DEFCHANNELS 16 /* max. count of preconfigurable channels */
|
2002-05-21 02:10:16 +02:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define MAX_SERVICES 8 /* max. number of configurable services */
|
2002-12-17 00:10:56 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define CONNECTION_POOL 100 /* size of default connection pool */
|
2001-12-31 03:18:51 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define CLIENT_ID_LEN 64 /* max. length of an IRC ID; see RFC 2812, 1.1 and 1.2.1 */
|
|
|
|
#define CLIENT_NICK_LEN 10 /* max. nick length; see. RFC 2812, 1.2.1 */
|
|
|
|
#define CLIENT_PASS_LEN 21 /* max. password length */
|
|
|
|
#define CLIENT_USER_LEN 9 /* max. length of user name ("login") */
|
|
|
|
#define CLIENT_NAME_LEN 32 /* max. length of "real names" */
|
|
|
|
#define CLIENT_HOST_LEN 64 /* max. host name length */
|
|
|
|
#define CLIENT_MODE_LEN 8 /* max. lenth of all client modes */
|
|
|
|
#define CLIENT_INFO_LEN 64 /* max. length of server info texts */
|
|
|
|
#define CLIENT_AWAY_LEN 128 /* max. length of away messages */
|
|
|
|
#define CLIENT_FLAGS_LEN 100 /* max. length of client flags */
|
2001-12-31 03:18:51 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define CHANNEL_NAME_LEN 51 /* max. length of a channel name, see. RFC 2812, 1.3 */
|
|
|
|
#define CHANNEL_MODE_LEN 8 /* max. length of channel modes */
|
|
|
|
#define CHANNEL_TOPIC_LEN 128 /* max. length of a channel topic */
|
2002-01-21 01:03:16 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define COMMAND_LEN 513 /* max. IRC command length, see. RFC 2812, 3.2 */
|
2001-12-31 03:18:51 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define READBUFFER_LEN 2048 /* size of the read buffer of a connection (bytes) */
|
|
|
|
#define WRITEBUFFER_LEN 4096 /* size of the write buffer of a connection (bytes) */
|
2001-12-31 03:18:51 +01:00
|
|
|
|
2003-12-26 16:55:07 +01:00
|
|
|
#ifdef ZLIB
|
2005-01-17 14:14:36 +01:00
|
|
|
#define ZREADBUFFER_LEN 1024 /* compressed read buffer of a connection (bytes) */
|
|
|
|
#define ZWRITEBUFFER_LEN 4096 /* compressed write buffer of a connection (bytes) */
|
2002-11-27 00:07:24 +01:00
|
|
|
#endif
|
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define PROTOVER "0210" /* implemented IRC protocol version (see RFC 2813, 4.1.1) */
|
|
|
|
#define PROTOIRC "-IRC" /* protocol suffix (see RFC 2813, 4.1.1) */
|
|
|
|
#define PROTOIRCPLUS "-IRC+" /* protokol suffix for IRC+ protocol (see doc/Protocol.txt) */
|
2002-01-03 03:24:00 +01:00
|
|
|
|
2002-09-07 19:58:00 +02:00
|
|
|
#ifdef IRCPLUS
|
2005-01-17 14:14:36 +01:00
|
|
|
# define IRCPLUSFLAGS "CL" /* standard IRC+ flags */
|
2002-09-07 19:58:00 +02:00
|
|
|
#endif
|
2002-09-04 01:53:41 +02:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define STARTUP_DELAY 1 /* delay outgoing connections n seconds after startup */
|
|
|
|
#define RECONNECT_DELAY 3 /* time to delay re-connect attempts (seconds) */
|
2002-01-03 03:24:00 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define USERMODES "aios" /* supported user modes */
|
|
|
|
#define CHANMODES "biklImnoPtv" /* supported channel modes */
|
2002-02-13 18:45:57 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define CONNECTED TRUE /* internal status codes */
|
2002-02-28 00:24:58 +01:00
|
|
|
#define DISCONNECTED FALSE
|
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define DEFAULT_AWAY_MSG "Away" /* away message for users connected to linked servers */
|
2002-03-04 02:05:10 +01:00
|
|
|
|
2002-12-26 14:17:56 +01:00
|
|
|
#define CONFIG_FILE "/ngircd.conf"
|
|
|
|
#define MOTD_FILE "/ngircd.motd"
|
2004-05-07 13:19:20 +02:00
|
|
|
#define MOTD_PHRASE ""
|
|
|
|
#define CHROOT_DIR ""
|
2005-02-04 15:24:20 +01:00
|
|
|
#define PID_FILE ""
|
2002-12-26 14:17:56 +01:00
|
|
|
|
2002-03-29 23:55:02 +01:00
|
|
|
#define ERROR_DIR "/tmp"
|
2002-03-06 16:35:19 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define MAX_LOG_MSG_LEN 256 /* max. length of a log message */
|
2002-03-27 17:39:50 +01:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define TOKEN_OUTBOUND -2 /* tag for outbound server links */
|
2002-04-08 03:18:14 +02:00
|
|
|
|
2005-01-17 14:14:36 +01:00
|
|
|
#define NOTICE_TXTPREFIX "" /* prefix for NOTICEs from the server to users */
|
2002-10-09 15:15:45 +02:00
|
|
|
|
2003-02-23 13:03:39 +01:00
|
|
|
#ifdef RENDEZVOUS
|
2005-01-17 14:14:36 +01:00
|
|
|
#define RENDEZVOUS_TYPE "_ircu._tcp." /* service type to register with Rendezvous */
|
2003-02-23 13:03:39 +01:00
|
|
|
#endif
|
|
|
|
|
2002-02-13 18:45:57 +01:00
|
|
|
|
2001-12-31 03:18:51 +01:00
|
|
|
#endif
|
|
|
|
|
|
|
|
|
|
|
|
/* -eof- */
|