X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fngircd%2Fdefines.h;h=1eb3337dfca4e65d09830befd58d9f55984744c3;hb=de453d71cb1bcd78b365f16e994003e913a03148;hp=2613a358e9ffcc046a31f10c9853685ace688945;hpb=9260759cec948b5b3f1a5e84c435d7afe4313718;p=ngircd.git diff --git a/src/ngircd/defines.h b/src/ngircd/defines.h index 2613a358..1eb3337d 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 */ @@ -158,10 +161,10 @@ #endif /** Supported user modes. */ -#define USERMODES "aciorRswx" +#define USERMODES "aBcCiorRswx" /** Supported channel modes. */ -#define CHANMODES "biIklmnoOPRstvz" +#define CHANMODES "abehiIklmMnoOPqrRstvVz" /** Away message for users connected to linked servers. */ #define DEFAULT_AWAY_MSG "Away" @@ -178,12 +181,27 @@ /* Defaults and limits for IRC commands */ -/** Default count of WHOWAS command replies */ -#define DEF_RPL_WHOWAS 5 +/** Max. number of LIST replies. */ +#define MAX_RPL_LIST 100 -/** Max. number of channel modes with arguments per MODE command */ +/** Max. number of elemets allowed in channel invite and ban lists. */ +#define MAX_HNDL_CHANNEL_LISTS 50 + +/** Max. number of channel modes with arguments per MODE command. */ #define MAX_HNDL_MODES_ARG 5 +/** Max. number of WHO replies. */ +#define MAX_RPL_WHO 25 + +/** Max. number of WHOIS replies. */ +#define MAX_RPL_WHOIS 10 + +/** Default count of WHOWAS command replies. */ +#define DEF_RPL_WHOWAS 5 + +/** Max count of WHOWAS command replies. */ +#define MAX_RPL_WHOWAS 25 + #endif