1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 23:13:13 +02:00

BUILD : 1.7.6 (516) BUGS : 261 NOTES : This should be it finally! The moduleAddData function was using the old head to append/prepend the new moduleData to, but it had to use the new head. Thanks to DrStein for finding the cause! :)

git-svn-id: svn://svn.anope.org/anope/trunk@516 31f1291d-b8d6-0310-a050-a5561fc1590b


git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@370 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b
2004-12-30 17:38:35 +00:00
parent 35096dbb8c
commit 2a8bc51cb1
3 changed files with 9 additions and 9 deletions
+3 -2
View File
@@ -2,8 +2,8 @@ Anope Version S V N
-------------------
Provided by Anope Dev. <dev@anope.org> - 2004
12/30 A Warnings for NULL values with sstrdup/moduleData. [#261]
12/26 A Services can enforce SGLINE and SQLINE by killing the user on set [#245]
12/25 A Flag to tell if we need to enforce SGlines or not [ #00]
12/26 A Services can enforce SGLINE/SQLINE by killing the user on set. [#245]
12/25 A Flag to tell if we need to enforce SGlines or not. [ #00]
12/02 A Support for other Ulines Servers (NeoStats/SolarStats). [ #00]
11/28 A Support for Unreal's version of SVSHOLD. [ #00]
11/28 A /OS SET LIST to list the set options. [ #00]
@@ -16,6 +16,7 @@ Provided by Anope Dev. <dev@anope.org> - 2004
11/19 A Added anope_cmd_ctcp() to code API, for sending CTCP messages. [ #00]
11/18 A Unable to use registered nicknames as bot nicks from now on. [ #00]
11/18 A NSAddAccessOnReg to control access list on registration. [ #00]
12/30 F Fixed moduleAddData using an old moduleData as list head. [#261]
12/30 F List handling of moduleData was bad on deletion. [#261]
12/30 F Few memleaks with moduleData functions returning early. [ #00]
12/30 F Modules can no longer add commands with mod_name set. [#261]
+1 -6
View File
@@ -1825,7 +1825,6 @@ int moduleAddData(ModuleData ** md, char *key, char *value)
*/
char *mod_name = sstrdup(mod_current_module_name);
ModuleData *newData = NULL;
ModuleData *tmp = *md;
if (!key || !value) {
alog("A module tried to use ModuleAddData() with one ore more NULL arguments... returning");
@@ -1850,11 +1849,7 @@ int moduleAddData(ModuleData ** md, char *key, char *value)
newData->moduleName = sstrdup(mod_name);
newData->key = sstrdup(key);
newData->value = sstrdup(value);
if (tmp) {
newData->next = tmp;
} else {
newData->next = NULL;
}
newData->next = *md;
*md = newData;
free(mod_name);
+5 -1
View File
@@ -8,10 +8,14 @@
VERSION_MAJOR="1"
VERSION_MINOR="7"
VERSION_PATCH="6"
VERSION_BUILD="515"
VERSION_BUILD="516"
# $Log$
#
# BUILD : 1.7.6 (516)
# BUGS : 261
# NOTES : This should be it finally! The moduleAddData function was using the old head to append/prepend the new moduleData to, but it had to use the new head. Thanks to DrStein for finding the cause! :)
#
# BUILD : 1.7.6 (515)
# BUGS : 261
# NOTES : Fixed a few memleaks with moduleData functions returning early, and fixed the list handling with deleting moduleData (thanks DrStein)