From aba25d142ea1505cc401cc087f3f02e5db72c02d Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 29 May 2005 04:25:25 +0000 Subject: 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 --- include/inspircd.h | 7 ------- include/users.h | 11 +++-------- 2 files changed, 3 insertions(+), 15 deletions(-) (limited to 'include') 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 -- cgit v1.2.3