diff options
| author | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-09 08:49:00 +0000 |
|---|---|---|
| committer | DukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-01-09 08:49:00 +0000 |
| commit | 5e62e8f22e94c975159e1800732cb2740c18d50b (patch) | |
| tree | f3551b11b8a21f36afa8f5d8b594536e4ccc7b9c /src/nickserv.c | |
| parent | a4b015b39d0e232121e060466a979277f0f28ce2 (diff) | |
changed all password fields to std::string and reworked the way how the enc modules handle the passwords
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2740 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/nickserv.c')
| -rw-r--r-- | src/nickserv.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/nickserv.c b/src/nickserv.c index ee68f7fe1..2aba04bdd 100644 --- a/src/nickserv.c +++ b/src/nickserv.c @@ -188,9 +188,8 @@ void get_core_stats(long *nrec, long *memuse) if (nc->display) mem += strlen(nc->display) + 1; - if (nc->pass) - mem += strlen(nc->pass) + 1; - + if (!nc->pass.empty()) + mem += (nc->pass.capacity() + (2 * sizeof(size_t)) + (2 * sizeof(void*))); if (nc->url) mem += strlen(nc->url) + 1; if (nc->email) |
