diff options
author | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-30 05:39:28 +0000 |
---|---|---|
committer | trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b <trystan trystan@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864> | 2004-12-30 05:39:28 +0000 |
commit | 426667535865a20c9c16ecbc4ffea82deb8017d7 (patch) | |
tree | 44f9879226d71dcb560f6974efc9040c019b2b74 | |
parent | 67aed6fdc229481d4923240293753fe84b302026 (diff) |
BUILD : 1.7.6 (509) BUGS : 261 NOTES : Doc found more to the bug 261, should to be the last
git-svn-id: svn://svn.anope.org/anope/trunk@509 31f1291d-b8d6-0310-a050-a5561fc1590b
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@363 5417fbe8-f217-4b02-8779-1006273d7864
-rw-r--r-- | Changes | 1 | ||||
-rw-r--r-- | src/commands.c | 21 | ||||
-rw-r--r-- | version.log | 6 |
3 files changed, 27 insertions, 1 deletions
@@ -70,6 +70,7 @@ Provided by Anope Dev. <dev@anope.org> - 2004 Provided by DrStein <gacevedo@anope.org> - 2004 12/23 A NS STATUS will return your status if no nickname is given. [ #00] +12/30 F mod_current_module_name is not set if the module uses addCommand. [#261] 12/30 F Loop overpassed in moduleDelData. [#261] 12/26 F Error message during SQL init even if UseRDB was disabled. [ #00] 12/10 F Extra tab in language files, causing bad answer in !seen. [#243] diff --git a/src/commands.c b/src/commands.c index e37eb574b..8fced507e 100644 --- a/src/commands.c +++ b/src/commands.c @@ -69,6 +69,27 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char *cmd) { Command *c = findCommand(cmdTable, cmd); + + if (cmdTable == HOSTSERV) { + c->mod_name = NULL; + } else if (cmdTable == BOTSERV) { + c->mod_name = NULL; + } else if (cmdTable == MEMOSERV) { + c->mod_name = NULL; + } else if (cmdTable == CHANSERV) { + c->mod_name = NULL; + } else if (cmdTable == NICKSERV) { + c->mod_name = NULL; + } else if (cmdTable == HELPSERV) { + c->mod_name = NULL; + } else if (cmdTable == OPERSERV) { + c->mod_name = NULL; + } else { + c->mod_name = sstrdup(mod_current_module_name); + if (debug) + alog("Module %s is using addCommand instead of moduleAddCommand.", c->mod_name); + } + do_run_cmd(service, u, c, cmd); } diff --git a/version.log b/version.log index a3c7b966f..ab2b70239 100644 --- a/version.log +++ b/version.log @@ -8,10 +8,14 @@ VERSION_MAJOR="1" VERSION_MINOR="7" VERSION_PATCH="6" -VERSION_BUILD="508" +VERSION_BUILD="509" # $Log$ # +# BUILD : 1.7.6 (509) +# BUGS : 261 +# NOTES : Doc found more to the bug 261, should to be the last +# # BUILD : 1.7.6 (508) # BUGS : 261 # NOTES : docs fix to bug 261, seems to fix it for me, Certus care to test? |