summaryrefslogtreecommitdiff
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
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
-rw-r--r--include/modules.h4
-rw-r--r--src/core/bs_act.c2
-rw-r--r--src/core/bs_assign.c2
-rw-r--r--src/core/bs_badwords.c2
-rw-r--r--src/core/bs_bot.c2
-rw-r--r--src/core/bs_botlist.c2
-rw-r--r--src/core/bs_help.c2
-rw-r--r--src/core/bs_info.c2
-rw-r--r--src/core/bs_kick.c2
-rw-r--r--src/core/bs_say.c2
-rw-r--r--src/core/bs_set.c2
-rw-r--r--src/core/bs_unassign.c2
-rw-r--r--src/core/cs_access.c4
-rw-r--r--src/core/cs_akick.c2
-rw-r--r--src/core/cs_ban.c4
-rw-r--r--src/core/cs_clear.c2
-rw-r--r--src/core/cs_drop.c2
-rw-r--r--src/core/cs_forbid.c2
-rw-r--r--src/core/cs_getkey.c2
-rw-r--r--src/core/cs_getpass.c2
-rw-r--r--src/core/cs_help.c2
-rw-r--r--src/core/cs_identify.c4
-rw-r--r--src/core/cs_info.c2
-rw-r--r--src/core/cs_invite.c2
-rw-r--r--src/core/cs_kick.c2
-rw-r--r--src/core/cs_list.c2
-rw-r--r--src/core/cs_logout.c2
-rw-r--r--src/core/cs_modes.c24
-rw-r--r--src/core/cs_register.c2
-rw-r--r--src/core/cs_sendpass.c2
-rw-r--r--src/core/cs_set.c2
-rw-r--r--src/core/cs_status.c2
-rw-r--r--src/core/cs_suspend.c4
-rw-r--r--src/core/cs_topic.c2
-rw-r--r--src/core/cs_xop.c8
-rw-r--r--src/core/hs_del.c2
-rw-r--r--src/core/hs_delall.c2
-rw-r--r--src/core/hs_group.c2
-rw-r--r--src/core/hs_help.c2
-rw-r--r--src/core/hs_list.c2
-rw-r--r--src/core/hs_off.c2
-rw-r--r--src/core/hs_on.c2
-rw-r--r--src/core/hs_set.c2
-rw-r--r--src/core/hs_setall.c2
-rw-r--r--src/core/ms_cancel.c2
-rw-r--r--src/core/ms_check.c2
-rw-r--r--src/core/ms_del.c2
-rw-r--r--src/core/ms_help.c2
-rw-r--r--src/core/ms_info.c2
-rw-r--r--src/core/ms_list.c2
-rw-r--r--src/core/ms_read.c2
-rw-r--r--src/core/ms_rsend.c2
-rw-r--r--src/core/ms_send.c2
-rw-r--r--src/core/ms_sendall.c2
-rw-r--r--src/core/ms_set.c2
-rw-r--r--src/core/ms_staff.c2
-rw-r--r--src/core/ns_access.c2
-rw-r--r--src/core/ns_alist.c2
-rw-r--r--src/core/ns_drop.c2
-rw-r--r--src/core/ns_forbid.c2
-rw-r--r--src/core/ns_getemail.c2
-rw-r--r--src/core/ns_getpass.c2
-rw-r--r--src/core/ns_ghost.c2
-rw-r--r--src/core/ns_group.c4
-rw-r--r--src/core/ns_help.c2
-rw-r--r--src/core/ns_identify.c4
-rw-r--r--src/core/ns_info.c2
-rw-r--r--src/core/ns_list.c2
-rw-r--r--src/core/ns_logout.c2
-rw-r--r--src/core/ns_recover.c2
-rw-r--r--src/core/ns_register.c6
-rw-r--r--src/core/ns_release.c2
-rw-r--r--src/core/ns_saset.c2
-rw-r--r--src/core/ns_sendpass.c2
-rw-r--r--src/core/ns_set.c2
-rw-r--r--src/core/ns_status.c2
-rw-r--r--src/core/ns_suspend.c4
-rw-r--r--src/core/ns_update.c2
-rw-r--r--src/core/os_akill.c2
-rw-r--r--src/core/os_chankill.c2
-rw-r--r--src/core/os_chanlist.c2
-rw-r--r--src/core/os_clearmodes.c2
-rw-r--r--src/core/os_defcon.c2
-rw-r--r--src/core/os_global.c2
-rw-r--r--src/core/os_help.c2
-rw-r--r--src/core/os_ignore.c2
-rw-r--r--src/core/os_jupe.c2
-rw-r--r--src/core/os_kick.c2
-rw-r--r--src/core/os_mode.c2
-rw-r--r--src/core/os_modinfo.c2
-rw-r--r--src/core/os_modlist.c2
-rw-r--r--src/core/os_modload.c2
-rw-r--r--src/core/os_modunload.c2
-rw-r--r--src/core/os_news.c6
-rw-r--r--src/core/os_noop.c2
-rw-r--r--src/core/os_oline.c2
-rw-r--r--src/core/os_quit.c2
-rw-r--r--src/core/os_reload.c2
-rw-r--r--src/core/os_restart.c2
-rw-r--r--src/core/os_session.c4
-rw-r--r--src/core/os_set.c2
-rw-r--r--src/core/os_sgline.c2
-rw-r--r--src/core/os_shutdown.c2
-rw-r--r--src/core/os_sqline.c2
-rw-r--r--src/core/os_staff.c2
-rw-r--r--src/core/os_stats.c2
-rw-r--r--src/core/os_svsnick.c2
-rw-r--r--src/core/os_szline.c2
-rw-r--r--src/core/os_umode.c2
-rw-r--r--src/core/os_update.c2
-rw-r--r--src/core/os_userlist.c2
-rw-r--r--src/core/ss_main.c2
-rw-r--r--src/modules.c9
-rw-r--r--src/modules/cs_appendtopic.c2
-rw-r--r--src/modules/cs_enforce.c2
-rw-r--r--src/modules/cs_tban.c2
-rw-r--r--src/modules/hs_request.c8
-rw-r--r--src/modules/os_info.c4
118 files changed, 151 insertions, 154 deletions
diff --git a/include/modules.h b/include/modules.h
index 12a061c9e..fc00fafee 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -440,11 +440,9 @@ class CoreExport Module
* e.g. AddCommand(NICKSERV,c,MOD_HEAD);
* @param cmdTable the services to add the command to
* @param c the command to add
- * @param pos the position to add to, MOD_HEAD, MOD_TAIL, MOD_UNIQUE
- * @see createCommand
* @return MOD_ERR_OK on successfully adding the command
*/
- int AddCommand(CommandHash *cmdTable[], Command * c, int pos);
+ int AddCommand(CommandHash *cmdTable[], Command * c);
/**
* Delete a command from the service given.
diff --git a/src/core/bs_act.c b/src/core/bs_act.c
index b81e43c13..82c893e74 100644
--- a/src/core/bs_act.c
+++ b/src/core/bs_act.c
@@ -75,7 +75,7 @@ class BSAct : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(BOTSERV, new CommandBSAct(), MOD_UNIQUE);
+ this->AddCommand(BOTSERV, new CommandBSAct());
}
void BotServHelp(User *u)
{
diff --git a/src/core/bs_assign.c b/src/core/bs_assign.c
index 95ee8a9aa..e54989ac7 100644
--- a/src/core/bs_assign.c
+++ b/src/core/bs_assign.c
@@ -86,7 +86,7 @@ class BSAssign : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(BOTSERV, new CommandBSAssign, MOD_UNIQUE);
+ this->AddCommand(BOTSERV, new CommandBSAssign);
}
void BotServHelp(User *u)
{
diff --git a/src/core/bs_badwords.c b/src/core/bs_badwords.c
index d174574d0..b8a022f1b 100644
--- a/src/core/bs_badwords.c
+++ b/src/core/bs_badwords.c
@@ -295,7 +295,7 @@ class BSBadwords : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(BOTSERV, new CommandBSBadwords, MOD_UNIQUE);
+ this->AddCommand(BOTSERV, new CommandBSBadwords);
}
void BotServHelp(User *u)
{
diff --git a/src/core/bs_bot.c b/src/core/bs_bot.c
index 8ab832b8d..6cb46f2ba 100644
--- a/src/core/bs_bot.c
+++ b/src/core/bs_bot.c
@@ -433,7 +433,7 @@ class BSBot : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(BOTSERV, new CommandBSBot(), MOD_UNIQUE);
+ this->AddCommand(BOTSERV, new CommandBSBot());
}
void BotServHelp(User *u)
{
diff --git a/src/core/bs_botlist.c b/src/core/bs_botlist.c
index b3125ec23..71ee10af0 100644
--- a/src/core/bs_botlist.c
+++ b/src/core/bs_botlist.c
@@ -78,7 +78,7 @@ class BSBotList : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(BOTSERV, new CommandBSBotList(), MOD_UNIQUE);
+ this->AddCommand(BOTSERV, new CommandBSBotList());
}
void BotServHelp(User *u)
{
diff --git a/src/core/bs_help.c b/src/core/bs_help.c
index 8d0572b79..2fdc9adac 100644
--- a/src/core/bs_help.c
+++ b/src/core/bs_help.c
@@ -47,7 +47,7 @@ class BSHelp : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(BOTSERV, new CommandBSHelp(), MOD_UNIQUE);
+ this->AddCommand(BOTSERV, new CommandBSHelp());
}
};
diff --git a/src/core/bs_info.c b/src/core/bs_info.c
index de7e3e59e..8ebdf6e46 100644
--- a/src/core/bs_info.c
+++ b/src/core/bs_info.c
@@ -256,7 +256,7 @@ class BSInfo : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(BOTSERV, new CommandBSInfo(), MOD_UNIQUE);
+ this->AddCommand(BOTSERV, new CommandBSInfo());
}
void BotServHelp(User *u)
{
diff --git a/src/core/bs_kick.c b/src/core/bs_kick.c
index 26b1d911c..95a0a63b0 100644
--- a/src/core/bs_kick.c
+++ b/src/core/bs_kick.c
@@ -348,7 +348,7 @@ class BSKick : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(BOTSERV, new CommandBSKick(), MOD_UNIQUE);
+ this->AddCommand(BOTSERV, new CommandBSKick());
}
void BotServHelp(User *u)
{
diff --git a/src/core/bs_say.c b/src/core/bs_say.c
index 8a7f49c73..8e2c7710e 100644
--- a/src/core/bs_say.c
+++ b/src/core/bs_say.c
@@ -82,7 +82,7 @@ class BSSay : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(BOTSERV, new CommandBSSay(), MOD_UNIQUE);
+ this->AddCommand(BOTSERV, new CommandBSSay());
}
void BotServHelp(User *u)
{
diff --git a/src/core/bs_set.c b/src/core/bs_set.c
index 286048f30..74679244b 100644
--- a/src/core/bs_set.c
+++ b/src/core/bs_set.c
@@ -186,7 +186,7 @@ class BSSet : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(BOTSERV, new CommandBSSet(), MOD_UNIQUE);
+ this->AddCommand(BOTSERV, new CommandBSSet());
}
void BotServHelp(User *u)
{
diff --git a/src/core/bs_unassign.c b/src/core/bs_unassign.c
index 198a625b6..3662e98b7 100644
--- a/src/core/bs_unassign.c
+++ b/src/core/bs_unassign.c
@@ -62,7 +62,7 @@ class BSUnassign : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(BOTSERV, new CommandBSUnassign, MOD_UNIQUE);
+ this->AddCommand(BOTSERV, new CommandBSUnassign);
}
void BotServHelp(User *u)
{
diff --git a/src/core/cs_access.c b/src/core/cs_access.c
index 40014b558..88e7adc3e 100644
--- a/src/core/cs_access.c
+++ b/src/