From 36e5e3ff42e40c5789ef129d0da546fa41102381 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 29 May 2005 04:32:31 +0000 Subject: [PATCH] Fixed lengths git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1547 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/users.h | 7 +++++-- src/hashcomp.cpp | 1 + 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/include/users.h b/include/users.h index 351fd661d..2c3f2ffc0 100644 --- a/include/users.h +++ b/include/users.h @@ -122,7 +122,7 @@ class userrec : public connection /** The users ident reply. */ - char ident[MAXIDENT+1]; + char ident[IDENTMAX+1]; /** The host displayed to non-opers (used for cloaking etc). * This usually matches the value of userrec::host. @@ -136,8 +136,11 @@ class userrec : public connection /** The user's mode string. * This may contain any of the following RFC characters: o, w, s, i * Your module may define other mode characters as it sees fit. + * it is limited to length 54, as there can only be a maximum of 52 + * user modes (26 upper, 26 lower case) a null terminating char, and + * an optional + character. */ - char modes[MAXBUF]; + char modes[54]; ucrec chans[MAXCHANS]; diff --git a/src/hashcomp.cpp b/src/hashcomp.cpp index 62aef7ffe..d21a83274 100644 --- a/src/hashcomp.cpp +++ b/src/hashcomp.cpp @@ -16,6 +16,7 @@ using namespace std; +#include "inspircd_config.h" #include "inspircd.h" #include #include "hashcomp.h" -- 2.39.5