X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fdefines.h;h=49abf579a203586221045dfcae1f26ea93c18547;hp=9dc5e92d4f4ec074247bd9f2741a8e4431b3b79f;hb=48326e061aacd954e24f76c53ded10448cbc28eb;hpb=1f4711a5474d2f0ea4664bd9b54f036af11f96cd diff --git a/src/ngircd/defines.h b/src/ngircd/defines.h index 9dc5e92d..49abf579 100644 --- a/src/ngircd/defines.h +++ b/src/ngircd/defines.h @@ -44,9 +44,12 @@ /** Max. length of file name. */ #define FNAME_LEN 256 -/** Max. lenght of fully qualified host names (e. g. "abc.domain.tld"). */ +/** Max. length of fully qualified host names (e. g. "abc.domain.tld"). */ #define HOST_LEN 256 +/** Max. length of random salt */ +#define RANDOM_SALT_LEN 32 + /* Size of structures */ @@ -89,7 +92,7 @@ /** Default nick length (including NULL), see. RFC 2812 section 1.2.1. */ #define CLIENT_NICK_LEN_DEFAULT 10 -/** Maximum nick name length (including NULL). */ +/** Maximum nickname length (including NULL). */ #define CLIENT_NICK_LEN 32 /** Max. password length (including NULL). */ @@ -105,7 +108,7 @@ #define CLIENT_HOST_LEN 64 /** Max. length of all client modes (including NULL). */ -#define CLIENT_MODE_LEN 16 +#define CLIENT_MODE_LEN 21 /** Max. length of server info texts (including NULL). */ #define CLIENT_INFO_LEN 64 @@ -120,7 +123,7 @@ #define CHANNEL_NAME_LEN 51 /** Max. length of channel modes (including NULL). */ -#define CHANNEL_MODE_LEN 9 +#define CHANNEL_MODE_LEN 21 /** Max. IRC command length (including NULL), see. RFC 2812 section 3.2. */ #define COMMAND_LEN 513 @@ -158,10 +161,10 @@ #endif /** Supported user modes. */ -#define USERMODES "acCiorRswx" +#define USERMODES "abBcCioqrRswx" /** Supported channel modes. */ -#define CHANMODES "biIklmnoOPRstvz" +#define CHANMODES "abehiIklmMnoOPqQrRstvVz" /** Away message for users connected to linked servers. */ #define DEFAULT_AWAY_MSG "Away" @@ -178,9 +181,6 @@ /* Defaults and limits for IRC commands */ -/** Max. number of LIST replies. */ -#define MAX_RPL_LIST 100 - /** Max. number of elemets allowed in channel invite and ban lists. */ #define MAX_HNDL_CHANNEL_LISTS 50