diff options
author | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-02 09:11:57 +0000 |
---|---|---|
committer | rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-05-02 09:11:57 +0000 |
commit | ee1ca39543172236e40ea98e88e9be6bd1fd0d24 (patch) | |
tree | 11845ea1fc005f0a7fe6ab84e929d3e14915b378 /users.c | |
parent | f2ed3ecc8b66de929e0beeecfb2fc81f81201509 (diff) |
BUILD : 1.7.2 (78) BUGS : N/A NOTES : Added the ability to add module data to the NickCore and the NickAlias structs
git-svn-id: svn://svn.anope.org/anope/trunk@78 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@54 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'users.c')
-rw-r--r-- | users.c | 18 |
1 files changed, 1 insertions, 17 deletions
@@ -362,9 +362,6 @@ static void delete_user(User * user) { struct u_chanlist *c, *c2; struct u_chaninfolist *ci, *ci2; - int i; - ModuleData *md, *nextMd; - ModuleDataItem *item, *nextItem; if (LogUsers) { #ifdef HAS_VHOST @@ -416,20 +413,7 @@ static void delete_user(User * user) ci = ci2; } - for (i = 0; i < 1024; i++) { /* Clear up any module data used be the User struct */ - for (md = user->moduleData[i]; md; md = nextMd) { - nextMd = md->next; - for (item = md->di; item; item = nextItem) { - nextItem = item->next; - free(item->key); - free(item->value); - item->next = NULL; - free(item); - } - free(md->moduleName); - free(md); - } - } + moduleCleanStruct(user->moduleData); if (debug >= 2) alog("debug: delete_user(): delete from list"); |