diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-29 05:41:03 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2005-05-29 05:41:03 +0000 |
commit | b0a467e8d3064177e3ceaaa6c207a3e625d2125a (patch) | |
tree | 489182ac0cf4cf360f6060b5ab7c52c16571d780 /src/users.cpp | |
parent | ea3dc510c16a9bd2c35b51eeeccad313badc03c7 (diff) |
Highly optimized userrec saving 1.5k per user
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1550 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/users.cpp')
-rw-r--r-- | src/users.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp index cf977dff2..60072ed0c 100644 --- a/src/users.cpp +++ b/src/users.cpp @@ -25,6 +25,7 @@ using namespace std; #include "helperfuncs.h" extern std::stringstream config_f; +extern char ServerName[MAXBUF]; extern time_t TIME; @@ -39,7 +40,7 @@ userrec::userrec() strcpy(dhost,""); strcpy(fullname,""); strcpy(modes,""); - strcpy(server,""); + server = (char*)FindServerNamePtr(ServerName); strcpy(awaymsg,""); strcpy(oper,""); reset_due = TIME; @@ -50,7 +51,6 @@ userrec::userrec() dns_done = false; recvq = ""; sendq = ""; - strcpy(result,""); for (int i = 0; i < MAXCHANS; i++) { this->chans[i].channel = NULL; |