summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authortrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-12-30 05:25:48 +0000
committertrystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2004-12-30 05:25:48 +0000
commit67aed6fdc229481d4923240293753fe84b302026 (patch)
tree5ba7b4b601aa5f7b61b8f177e2ca59c2bc9a8d62 /src/modules.c
parentad8db21c153ebb799a0c40725a1b2c7754b338f0 (diff)
BUILD : 1.7.6 (508) BUGS : 261 NOTES : docs fix to bug 261, seems to fix it for me, Certus care to test?
git-svn-id: svn://svn.anope.org/anope/trunk@508 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@362 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules.c b/src/modules.c
index 107cf0bfa..eace42ae7 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -1887,7 +1887,6 @@ void moduleDelData(ModuleData **md, char *key)
if(key) {
while(current) {
- next = current->next;
if((stricmp(current->moduleName,mod_name)==0) && (stricmp(current->key,key)==0)) {
if(prev) {
prev->next = current->next;
@@ -1901,6 +1900,7 @@ void moduleDelData(ModuleData **md, char *key)
free(current);
}
prev = current;
+ next = current->next;
current = next;
}
}
@@ -1921,7 +1921,6 @@ void moduleDelAllData(ModuleData **md)
ModuleData *next = NULL;
while(current) {
- next = current->next;
if((stricmp(current->moduleName,mod_name)==0)) {
if(prev) {
prev->next = current->next;
@@ -1935,6 +1934,7 @@ void moduleDelAllData(ModuleData **md)
free(current);
}
prev = current;
+ next = current->next;
current = next;
}
free(mod_name);