diff options
author | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-05-10 14:45:00 +0000 |
---|---|---|
committer | geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b <geniusdex geniusdex@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2005-05-10 14:45:00 +0000 |
commit | d2b08b8e04583219cf34e406da31e510661a79a6 (patch) | |
tree | 7b0d8e663fb95438f78c7c409806af89e5890937 | |
parent | 6760f98c6b0e6bc01b0050c15fec4606e7661904 (diff) |
BUILD : 1.7.9 (785) BUGS : 371 372 NOTES : Set mod_current_module_name for AnopeFini and updated get_access to return -1 for non-identified users instead of 0.
git-svn-id: svn://svn.anope.org/anope/trunk@785 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@545 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | Changes | 2 | ||||
-rw-r--r-- | src/chanserv.c | 9 | ||||
-rw-r--r-- | src/config.c | 2 | ||||
-rw-r--r-- | src/modules.c | 2 | ||||
-rw-r--r-- | version.log | 6 |
5 files changed, 16 insertions, 5 deletions
@@ -1,5 +1,7 @@ Anope Version S V N ------------------- +05/10 F AnopeFini was called without mod_current_module_name set. [#371] +05/10 F Unidentified users now have level -1 instead of 0 again. [#372] 05/09 F Segfault in ns_maxemail when user's email not set. [ #00] 05/06 F Compiler warnings when using make strict. [ #00] 05/06 F Segfault in os_clearmodes when chan had invites (+I) set. [#357] diff --git a/src/chanserv.c b/src/chanserv.c index 70643e7d6..f3bf88483 100644 --- a/src/chanserv.c +++ b/src/chanserv.c @@ -2210,20 +2210,23 @@ int get_access(User * user, ChannelInfo * ci) ChanAccess *access; if (!ci || !user) - return 0; + return -1; if (is_founder(user, ci)) return ACCESS_FOUNDER; if (!user->na) - return 0; + return -1; if (nick_identified(user) || (nick_recognized(user) && !(ci->flags & CI_SECURE))) if ((access = get_access_entry(user->na->nc, ci))) return access->level; - return 0; + if (nick_identified(user)) + return 0; + + return -1; } /*************************************************************************/ diff --git a/src/config.c b/src/config.c index 7bf44b358..347f8cefe 100644 --- a/src/config.c +++ b/src/config.c @@ -858,7 +858,7 @@ int parse(char *buf, int linenum, int reload) if (n == lenof(directives)) { /* error(linenum, "Unknown directive `%s'", dir); - return 1; *//* don't cause abort */ + return 1; *//* don't cause abort */ } return retval; diff --git a/src/modules.c b/src/modules.c index a32845f27..c721014b5 100644 --- a/src/modules.c +++ b/src/modules.c @@ -540,7 +540,9 @@ int unloadModule(Module * m, User * u) func = ano_modsym(m->handle, "AnopeFini"); if (func) { + mod_current_module_name = m->name; func(); /* exec AnopeFini */ + mod_current_module_name = NULL; } if ((ano_modclose(m->handle)) != 0) { diff --git a/version.log b/version.log index fd0e6a1de..78583b390 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="9" -VERSION_BUILD="784" +VERSION_BUILD="785" # $Log$ # +# BUILD : 1.7.9 (785) +# BUGS : 371 372 +# NOTES : Set mod_current_module_name for AnopeFini and updated get_access to return -1 for non-identified users instead of 0. +# # BUILD : 1.7.9 (784) # BUGS : # NOTES : Fixed another segfault in ns_maxemail, forget a check for nc->email this time. |