about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlexander Barton <alex@barton.de>2011-08-01 21:21:01 +0200
committerAlexander Barton <alex@barton.de>2011-08-01 21:28:55 +0200
commitea725b99b7cc308de6a035e016e4d89e268cbf1f (patch)
tree5e58ca632e4889aa41bec503ae4f413feb5d5d42
parent3dc3a035386789852ba5a9fbc22b9b3c2793f0b0 (diff)
downloadngircd-ea725b99b7cc308de6a035e016e4d89e268cbf1f.tar.gz
ngircd-ea725b99b7cc308de6a035e016e4d89e268cbf1f.zip
Enlarge client user mode buffer, reduce client flags buffer
We have to enlage our user mode buffer, so we can handle even unknown
user modes in the future; and reduce the client flags buffer, because
I can't imagine why we ever would need ~100 flags!?

Now we support up to 15 user modes (was: 8) and up to 15 flags (was: 99).

So in the end, we even save 99-15+8-15=77 bytes for each client structure!
-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 688f2d3a..8f62279d 100644
--- a/src/ngircd/defines.h
+++ b/src/ngircd/defines.h
@@ -44,10 +44,10 @@
 					   see RFC 2812, section 1.2.1 */
 #define CLIENT_NAME_LEN 32		/* Max. length of "real names" */
 #define CLIENT_HOST_LEN 64		/* Max. host name length */
-#define CLIENT_MODE_LEN 9		/* Max. lenth of all client modes */
+#define CLIENT_MODE_LEN 16		/* Max. lenth of all client modes */
 #define CLIENT_INFO_LEN 64		/* Max. length of server info texts */
 #define CLIENT_AWAY_LEN 128		/* Max. length of away messages */
-#define CLIENT_FLAGS_LEN 100		/* Max. length of client flags */
+#define CLIENT_FLAGS_LEN 16		/* Max. length of client flags */
 
 #define CHANNEL_NAME_LEN 51		/* Max. length of a channel name, see
 					   RFC 2812 section 1.3 */