diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-29 04:32:31 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-29 04:32:31 +0000 |
commit | 36e5e3ff42e40c5789ef129d0da546fa41102381 (patch) | |
tree | 929d1c366c9b07697bac9889f1f87d10256aae3e | |
parent | aba25d142ea1505cc401cc087f3f02e5db72c02d (diff) |
Fixed lengths
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1547 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r-- | include/users.h | 7 | ||||
-rw-r--r-- | 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 <string> #include "hashcomp.h" |