diff --git a/modules.c b/modules.c index ca3e422ad..4e65495d9 100644 --- a/modules.c +++ b/modules.c @@ -1757,13 +1757,13 @@ int moduleAddData(ModuleData * md[], char *key, char *value) char *mod_name = sstrdup(mod_current_module_name); int index = 0; - index = CMD_HASH(mod_name); ModuleData *current = NULL; ModuleData *newHash = NULL; ModuleData *lastHash = NULL; ModuleDataItem *item = NULL; ModuleDataItem *itemCurrent = NULL; ModuleDataItem *lastItem = NULL; + index = CMD_HASH(mod_name); for (current = md[index]; current; current = current->next) { if (strcasecmp(current->moduleName, mod_name) == 0) @@ -1828,11 +1828,10 @@ char *moduleGetData(ModuleData * md[], char *key) char *mod_name = sstrdup(mod_current_module_name); int index = 0; char *ret = NULL; - index = CMD_HASH(mod_name); ModuleData *current = NULL; ModuleData *lastHash = NULL; - ModuleDataItem *itemCurrent = NULL; + index = CMD_HASH(mod_name); for (current = md[index]; current; current = current->next) { if (strcasecmp(current->moduleName, mod_name) == 0) @@ -1861,13 +1860,13 @@ void moduleDelData(ModuleData * md[], char *key) { char *mod_name = sstrdup(mod_current_module_name); int index = 0; - index = CMD_HASH(mod_name); ModuleData *current = NULL; ModuleData *lastHash = NULL; ModuleDataItem *itemCurrent = NULL; ModuleDataItem *prev = NULL; ModuleDataItem *next = NULL; + index = CMD_HASH(mod_name); for (current = md[index]; current; current = current->next) { if (strcasecmp(current->moduleName, mod_name) == 0) @@ -1904,13 +1903,13 @@ void moduleDelAllData(ModuleData * md[]) { char *mod_name = sstrdup(mod_current_module_name); int index = 0; - index = CMD_HASH(mod_name); ModuleData *current = NULL; ModuleData *lastHash = NULL; ModuleDataItem *itemCurrent = NULL; ModuleDataItem *prev = NULL; ModuleDataItem *next = NULL; + index = CMD_HASH(mod_name); for (current = md[index]; current; current = current->next) { if (strcasecmp(current->moduleName, mod_name) == 0) diff --git a/version.log b/version.log index 09b8c1157..80d06bffe 100644 --- a/version.log +++ b/version.log @@ -8,11 +8,15 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="2" -VERSION_BUILD="76" +VERSION_BUILD="77" VERSION_EXTRA="" # $Log$ # +# BUILD : 1.7.2 (77) +# BUGS : Compile errors on picky compilers +# NOTES : fixed a compile error on picky compilers +# # BUILD : 1.7.2 (76) # BUGS : # NOTES : Added memoserv function to check whether the last memo you sent to a nick has been read or not. new cmd: /MS CHECK