summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/inspircd.h5
-rw-r--r--include/users.h6
2 files changed, 8 insertions, 3 deletions
diff --git a/include/inspircd.h b/include/inspircd.h
index 89ce61ae6..5afdc21fb 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -120,3 +120,8 @@ void AddOper(userrec* user);
void DeleteOper(userrec* user);
void handle_version(char **parameters, int pcnt, userrec *user);
+
+// userrec optimization stuff
+
+void AddServerName(std::string servername);
+const char* FindServerNamePtr(std::string servername);
diff --git a/include/users.h b/include/users.h
index 2c3f2ffc0..a093e633e 100644
--- a/include/users.h
+++ b/include/users.h
@@ -146,7 +146,7 @@ class userrec : public connection
/** The server the user is connected to.
*/
- char server[256];
+ char* server;
/** The user's away message.
* If this string is empty, the user is not marked as away.
@@ -325,10 +325,10 @@ class WhoWasUser
{
public:
char nick[NICKMAX];
- char ident[16];
+ char ident[IDENTMAX+1];
char dhost[160];
char host[160];
- char fullname[128];
+ char fullname[MAXGECOS+1];
char server[256];
time_t signon;
};