summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/users.h7
-rw-r--r--src/hashcomp.cpp1
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"