diff options
| author | Nakidai <nakidai@disroot.org> | 2026-02-01 16:51:09 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2026-02-01 16:51:09 +0300 |
| commit | 62869d341d2a4e959b60865076287701694859dd (patch) | |
| tree | f07b4ec31d8ebcffee04e84fe71000a56fc4efa1 /config.h | |
| parent | 9fa2ddad60c16383fb927645e50ba142050f8110 (diff) | |
| download | libreircd-62869d341d2a4e959b60865076287701694859dd.tar.gz libreircd-62869d341d2a4e959b60865076287701694859dd.zip | |
Remove magic numbers from ircd.h
Also make a new file config.h for storing that stuff
Diffstat (limited to 'config.h')
| -rw-r--r-- | config.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/config.h b/config.h new file mode 100644 index 0000000..19d2958 --- /dev/null +++ b/config.h @@ -0,0 +1,15 @@ +#define PARAM_MAX 15 + +#define MESSAGE_MAX 512 +#define PEERS_MAX 512 +#define CHANNELS_MAX 512 + +#define CHANNEL_USERS_MAX 512 +#define CHANNEL_MODES_MAX 512 +#define CHANNEL_NAME_MAX 64 + +#define PEER_CHANNELS_MAX 32 +#define PEER_NICK_MAX 16 +#define PEER_USER_MAX 16 +#define PEER_REAL_MAX 32 +#define PEER_HOST_MAX 64 |