summaryrefslogtreecommitdiff
path: root/src/nickserv.c
diff options
context:
space:
mode:
authorDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-09 08:49:00 +0000
committerDukePyrolator <DukePyrolator@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-09 08:49:00 +0000
commit5e62e8f22e94c975159e1800732cb2740c18d50b (patch)
treef3551b11b8a21f36afa8f5d8b594536e4ccc7b9c /src/nickserv.c
parenta4b015b39d0e232121e060466a979277f0f28ce2 (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.c5
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)