]> arthur.barton.de Git - ngircd-alex.git/commitdiff
Increased maximum number of possible user and channel modes
authorDNS <dns@rbose.org>
Wed, 10 Oct 2012 23:53:20 +0000 (01:53 +0200)
committerAlexander Barton <alex@barton.de>
Fri, 19 Oct 2012 16:44:15 +0000 (18:44 +0200)
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)

src/ngircd/defines.h

index 977bc74ed43e4416a4d3aa02161e64da0d996155..b387493c6ab3ca0643a2322e99a26dab23688051 100644 (file)
 #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
 #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