diff options
| author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-15 21:00:51 +0000 |
|---|---|---|
| committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-09-15 21:00:51 +0000 |
| commit | 68592b0445ba7abe96c9fff04fa55482e5a389ab (patch) | |
| tree | 8e90e6b80df919335becaf27804c61c254da87e2 | |
| parent | 2ee049d7d87d85bd95d2d96b11346054cfabf527 (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
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/ |
