about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDNS <dns@rbose.org>2012-10-11 01:53:20 +0200
committerAlexander Barton <alex@barton.de>2012-10-19 18:44:15 +0200
commit58abd0777b0924e5cb8fa6c01b56305d9b175608 (patch)
tree4e46c698cdefcf093b68296d2f2445a91a5666cf
parent3ee98d9f72449c88861744aebdd0a2e570bc3bc5 (diff)
downloadngircd-58abd0777b0924e5cb8fa6c01b56305d9b175608.tar.gz
ngircd-58abd0777b0924e5cb8fa6c01b56305d9b175608.zip
Increased maximum number of possible user and channel modes
Currntly ngIRCd supports 13 user and 15 channel modes, because there
have been quite a few additions since our last release. But our data
structures can only hold 15 user and -- even worse! -- only 9 channel
modes! So enlarge the buffers to 20 bytes (actually 21 including NULL)
to allow storing of all mode characters and to have some space left
for more modes to come ...

(cherry picked from commit 8996d777621d88d4bcc439ab4792b2814920687f)
-rw-r--r--src/ngircd/defines.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ngircd/defines.h b/src/ngircd/defines.h
index 977bc74e..b387493c 100644
--- a/src/ngircd/defines.h
+++ b/src/ngircd/defines.h
@@ -108,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
@@ -123,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