mirror of
https://github.com/anope/anope.git
synced 2026-07-04 13:33:13 +02:00
BUILD : 1.7.6 (479) BUGS : 239 NOTES : Fixes infinite loop with moduleGetData()
git-svn-id: svn://svn.anope.org/anope/trunk@479 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@333 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
parent
8433084035
commit
a16cbf9a35
@@ -13,6 +13,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/06 F Fixes infinite loop with moduleGetData() [#239]
|
||||
12/05 F CS CLEAR OPS strips +a/+q modes, and uses SVSMODE where possible [ #00]
|
||||
12/05 F Ultimate3 not setting +a on channel admins [ #00]
|
||||
12/04 F Cleaned up some memory warnings found with Valgrind [ #00]
|
||||
|
||||
@@ -1852,12 +1852,20 @@ int moduleAddData(ModuleData **md, char *key, char *value)
|
||||
**/
|
||||
char *moduleGetData(ModuleData **md, char *key)
|
||||
{
|
||||
|
||||
char *mod_name = sstrdup(mod_current_module_name);
|
||||
ModuleData *current = *md;
|
||||
|
||||
if (debug) {
|
||||
alog("debug: moduleGetData %p : key %s", (void *) md, key);
|
||||
alog("debug: Current Module %s", mod_name);
|
||||
}
|
||||
|
||||
while(current) {
|
||||
if((stricmp(current->moduleName,mod_name)==0) && (stricmp(current->key,key)==0)) {
|
||||
return sstrdup(current->value);
|
||||
}
|
||||
current = current->next;
|
||||
}
|
||||
free(mod_name);
|
||||
return NULL;
|
||||
|
||||
+5
-1
@@ -8,10 +8,14 @@
|
||||
VERSION_MAJOR="1"
|
||||
VERSION_MINOR="7"
|
||||
VERSION_PATCH="6"
|
||||
VERSION_BUILD="478"
|
||||
VERSION_BUILD="479"
|
||||
|
||||
# $Log$
|
||||
#
|
||||
# BUILD : 1.7.6 (479)
|
||||
# BUGS : 239
|
||||
# NOTES : Fixes infinite loop with moduleGetData()
|
||||
#
|
||||
# BUILD : 1.7.6 (478)
|
||||
# BUGS : N/A
|
||||
# NOTES : 1. CS CLEAR strips +q/+a
|
||||
|
||||
Reference in New Issue
Block a user