summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-29 04:25:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-05-29 04:25:25 +0000
commitaba25d142ea1505cc401cc087f3f02e5db72c02d (patch)
treec0c5fce0288b6aabbde9c8997d97be9645f58f55 /include
parent9b6a63ba94301187ec1cfffae756cf26b69ed5dd (diff)
A lot more of the core consts are now configurable at compile time
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1546 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h7
-rw-r--r--include/users.h11
2 files changed, 3 insertions, 15 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 11ef19f8b..89ce61ae6 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -46,15 +46,8 @@
#define ERROR -1
#define TRUE 1
#define FALSE 0
-#define IDENTMAX 12
#define MAXSOCKS 64
-
-// maximum lengths of items
-
-#define MAXQUIT 255
#define MAXCOMMAND 32
-#define MAXTOPIC 307
-#define MAXKICK 255
// flags for use with log()
diff --git a/include/users.h b/include/users.h
index c3a9e79b5..351fd661d 100644
--- a/include/users.h
+++ b/include/users.h
@@ -122,7 +122,7 @@ class userrec : public connection
/** The users ident reply.
*/
- char ident[16];
+ char ident[MAXIDENT+1];
/** The host displayed to non-opers (used for cloaking etc).
* This usually matches the value of userrec::host.
@@ -131,7 +131,7 @@ class userrec : public connection
/** The users full name.
*/
- char fullname[128];
+ char fullname[MAXGECOS+1];
/** The user's mode string.
* This may contain any of the following RFC characters: o, w, s, i
@@ -148,12 +148,7 @@ class userrec : public connection
/** The user's away message.
* If this string is empty, the user is not marked as away.
*/
- char awaymsg[512];
-
- /** Stores the result of the last GetFullHost or GetRealHost call.
- * You may use this to increase the speed of use of this class.
- */
- char result[256];
+ char awaymsg[MAXAWAY+1];
/** Number of lines the user can place into the buffer
* (up to the global NetBufferSize bytes) before they