summaryrefslogtreecommitdiff
path: root/src/modules.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-09-15 21:00:51 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-09-15 21:00:51 +0000
commit68592b0445ba7abe96c9fff04fa55482e5a389ab (patch)
tree8e90e6b80df919335becaf27804c61c254da87e2 /src/modules.c
parent2ee049d7d87d85bd95d2d96b11346054cfabf527 (diff)
Removed command position from Module::AddCommand(), it is no longer used because of OnPreCommand/OnPostCommand
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2505 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modules.c')
-rw-r--r--src/modules.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/modules.c b/src/modules.c
index 37510caf9..e33bc863a 100644
--- a/src/modules.c
+++ b/src/modules.c
@@ -177,10 +177,9 @@ Module *findModule(const char *name)
* at the tail, pos = 2
* @param cmdTable the table to add the command to
* @param c the command to add
- * @param pos the position in the cmd call stack to add the command
* @return MOD_ERR_OK will be returned on success.
*/
-static int internal_addCommand(Module *m, CommandHash * cmdTable[], Command * c, int pos)
+static int internal_addCommand(Module *m, CommandHash * cmdTable[], Command * c)
{
/* We can assume both param's have been checked by this point.. */
int index = 0;
@@ -188,7 +187,7 @@ static int internal_addCommand(Module *m, CommandHash * cmdTable[], Command * c,
CommandHash *newHash = NULL;
CommandHash *lastHash = NULL;
- if (!cmdTable || !c || (pos < 0 || pos > 2)) {
+ if (!cmdTable || !c) {
return MOD_ERR_PARAMS;
}
@@ -220,7 +219,7 @@ static int internal_addCommand(Module *m, CommandHash * cmdTable[], Command * c,
return MOD_ERR_OK;
}
-int Module::AddCommand(CommandHash * cmdTable[], Command * c, int pos)
+int Module::AddCommand(CommandHash * cmdTable[], Command * c)
{
int status;
@@ -272,7 +271,7 @@ int Module::AddCommand(CommandHash * cmdTable[], Command * c, int pos)
} else
c->service = sstrdup("Unknown");
- status = internal_addCommand(this, cmdTable, c, pos);
+ status = internal_addCommand(this, cmdTable, c);
if (status != MOD_ERR_OK)
{
alog("ERROR! [%d]", status);