summaryrefslogtreecommitdiff
path: root/src/chanserv.c
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-09-19 10:28:02 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-09-19 10:28:02 +0000
commitfe0992a6aba0a7a95b666ecb52df8ce1a6d5a723 (patch)
tree5d45b54d05662b624b86a12bf94bd586bf77e68a /src/chanserv.c
parentaa896a87ac4705a5a8a26cbf5ddae2db3fc54c62 (diff)
BUILD : 1.7.5 (351) BUGS : N/A NOTES : Rewrote the internals of moduleData, this will save _lots_ of memory especially on larger networks. The downside is modules using it need to make a tiny, tiny change... :/
git-svn-id: svn://svn.anope.org/anope/trunk@351 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@227 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/chanserv.c')
-rw-r--r--src/chanserv.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/chanserv.c b/src/chanserv.c
index 4a1ad524b..e210ac5ac 100644
--- a/src/chanserv.c
+++ b/src/chanserv.c
@@ -912,9 +912,7 @@ void load_cs_dbase(void)
memos->time = tmp32;
SAFE(read_buffer(memos->sender, f));
SAFE(read_string(&memos->text, f));
- for (m = 0; m < MAX_CMD_HASH; m++) {
- memos->moduleData[m] = NULL;
- }
+ memos->moduleData = NULL;
}
}
@@ -2097,7 +2095,7 @@ int delchan(ChannelInfo * ci)
for (i = 0; i < ci->memos.memocount; i++) {
if (ci->memos.memos[i].text)
free(ci->memos.memos[i].text);
- moduleCleanStruct(ci->memos.memos[i].moduleData);
+ moduleCleanStruct(&ci->memos.memos[i].moduleData);
}
free(ci->memos.memos);
}
@@ -2110,7 +2108,7 @@ int delchan(ChannelInfo * ci)
if (ci->badwords)
free(ci->badwords);
- moduleCleanStruct(ci->moduleData);
+ moduleCleanStruct(&ci->moduleData);
free(ci);
if (nc)