summary refs log tree commit diff
path: root/config.h
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-04 12:21:47 +0300
committerNakidai <nakidai@disroot.org>2026-02-04 12:21:47 +0300
commitce0f41da41a2d97d4a8e7159747464ecef72de4c (patch)
tree7e09329f15932710eb9fc14d18053c812c55515f /config.h
parent58a7e4a4d7449d58732e024ea07ea3623c10d8de (diff)
downloadlibreircd-ce0f41da41a2d97d4a8e7159747464ecef72de4c.tar.gz
libreircd-ce0f41da41a2d97d4a8e7159747464ecef72de4c.zip
Add WHOIS and config parsing
Now users can query each other

Plus, server info and creation date can be changed without recompiling
using configuration file in IRC message format which is loaded on
startup

TODO: since readcfg uses IRC logic, handle() now should be able to deal
with commands ending with simply \n
Diffstat (limited to 'config.h')
-rw-r--r--config.h15
1 files changed, 9 insertions, 6 deletions
diff --git a/config.h b/config.h
index 394ac70..dce385b 100644
--- a/config.h
+++ b/config.h
@@ -15,19 +15,22 @@
  */
 
 #define CREATION_DATE "Thu Jan 1 1970 at 00:00:00 UTC"
+#define INFO "The best IRC server ever \\o/"
 #define IRCD_VERSION "0.1.0"
 
-#define PARAM_MAX 15
+#define INFO_MAX 64
+#define CREATION_MAX 64
 
+#define PARAM_MAX 15
 #define MESSAGE_MAX 512
-#define PEERS_MAX 512
-#define CHANNELS_MAX 512
+#define PEERS_MAX 100
+#define CHANNELS_MAX 100
 
-#define CHANNEL_USERS_MAX 512
-#define CHANNEL_MODES_MAX 512
+#define CHANNEL_USERS_MAX 100
+#define CHANNEL_MODES_MAX 50
 #define CHANNEL_NAME_MAX 64
 
-#define PEER_CHANNELS_MAX 32
+#define PEER_CHANNELS_MAX 10
 #define PEER_NICK_MAX 16
 #define PEER_USER_MAX 16
 #define PEER_REAL_MAX 32