summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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
117 files changed, 150 insertions, 151 deletions
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/core/cs_access.c
@@ -490,8 +490,8 @@ class CSAccess : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSAccess(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSLevels(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSAccess());
+ this->AddCommand(CHANSERV, new CommandCSLevels());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_akick.c b/src/core/cs_akick.c
index 4f91beb8d..2c18cafcc 100644
--- a/src/core/cs_akick.c
+++ b/src/core/cs_akick.c
@@ -665,7 +665,7 @@ class CSAKick : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSAKick(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSAKick());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_ban.c b/src/core/cs_ban.c
index 5032680a7..212faee36 100644
--- a/src/core/cs_ban.c
+++ b/src/core/cs_ban.c
@@ -167,8 +167,8 @@ class CSBan : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSBan(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSUnban(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSBan());
+ this->AddCommand(CHANSERV, new CommandCSUnban());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_clear.c b/src/core/cs_clear.c
index 076a5cd34..74a471788 100644
--- a/src/core/cs_clear.c
+++ b/src/core/cs_clear.c
@@ -346,7 +346,7 @@ class CSClear : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSClear(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSClear());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_drop.c b/src/core/cs_drop.c
index 7eb6320c0..a84745edd 100644
--- a/src/core/cs_drop.c
+++ b/src/core/cs_drop.c
@@ -116,7 +116,7 @@ class CSDrop : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSDrop(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSDrop());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_forbid.c b/src/core/cs_forbid.c
index 6b2796b6c..b26c46074 100644
--- a/src/core/cs_forbid.c
+++ b/src/core/cs_forbid.c
@@ -126,7 +126,7 @@ class CSForbid : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSForbid(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSForbid());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_getkey.c b/src/core/cs_getkey.c
index 7fa654858..ddbad80e8 100644
--- a/src/core/cs_getkey.c
+++ b/src/core/cs_getkey.c
@@ -66,7 +66,7 @@ class CSGetKey : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSGetKey(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSGetKey());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_getpass.c b/src/core/cs_getpass.c
index cc1dfb89f..e492d0007 100644
--- a/src/core/cs_getpass.c
+++ b/src/core/cs_getpass.c
@@ -66,7 +66,7 @@ class CSGetPass : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSGetPass(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSGetPass());
char tmp_pass[PASSMAX];
if (!enc_decrypt("tmp", tmp_pass, PASSMAX - 1))
diff --git a/src/core/cs_help.c b/src/core/cs_help.c
index dd7c21f84..f484c5f7d 100644
--- a/src/core/cs_help.c
+++ b/src/core/cs_help.c
@@ -72,7 +72,7 @@ class CSHelp : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSHelp(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSHelp());
}
};
diff --git a/src/core/cs_identify.c b/src/core/cs_identify.c
index 63f9ac823..49d205636 100644
--- a/src/core/cs_identify.c
+++ b/src/core/cs_identify.c
@@ -92,9 +92,9 @@ class CSIdentify : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSIdentify("IDENTIFY"), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSIdentify("IDENTIFY"));
// XXX: we need aliases.
- this->AddCommand(CHANSERV, new CommandCSIdentify("ID"), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSIdentify("ID"));
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_info.c b/src/core/cs_info.c
index 9a7cc9bcc..0f7592f07 100644
--- a/src/core/cs_info.c
+++ b/src/core/cs_info.c
@@ -165,7 +165,7 @@ class CSInfo : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSInfo(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSInfo());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_invite.c b/src/core/cs_invite.c
index 95ab1e371..3d3d97d84 100644
--- a/src/core/cs_invite.c
+++ b/src/core/cs_invite.c
@@ -72,7 +72,7 @@ class CSInvite : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSInvite(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSInvite());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_kick.c b/src/core/cs_kick.c
index 3006c9b08..d0ce0d30b 100644
--- a/src/core/cs_kick.c
+++ b/src/core/cs_kick.c
@@ -101,7 +101,7 @@ class CSKick : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSKick(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSKick());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_list.c b/src/core/cs_list.c
index 4624bcf4c..ca43b735b 100644
--- a/src/core/cs_list.c
+++ b/src/core/cs_list.c
@@ -185,7 +185,7 @@ public:
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSList(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSList());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_logout.c b/src/core/cs_logout.c
index 0418b8ff5..5e5504a62 100644
--- a/src/core/cs_logout.c
+++ b/src/core/cs_logout.c
@@ -118,7 +118,7 @@ class CSLogout : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSLogout(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSLogout());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_modes.c b/src/core/cs_modes.c
index 3ab2d1528..855569a6c 100644
--- a/src/core/cs_modes.c
+++ b/src/core/cs_modes.c
@@ -348,33 +348,33 @@ class CSModes : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSOp(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSDeOp(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSVoice(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSDeVoice(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSOp());
+ this->AddCommand(CHANSERV, new CommandCSDeOp());
+ this->AddCommand(CHANSERV, new CommandCSVoice());
+ this->AddCommand(CHANSERV, new CommandCSDeVoice());
if (ircd->halfop)
{
- this->AddCommand(CHANSERV, new CommandCSHalfOp(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSDeHalfOp(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSHalfOp());
+ this->AddCommand(CHANSERV, new CommandCSDeHalfOp());
}
if (ircd->protect)
{
- this->AddCommand(CHANSERV, new CommandCSProtect(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSDeProtect(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSProtect());
+ this->AddCommand(CHANSERV, new CommandCSDeProtect());
}
if (ircd->admin)
{
- this->AddCommand(CHANSERV, new CommandCSProtect(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSDeProtect(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSProtect());
+ this->AddCommand(CHANSERV, new CommandCSDeProtect());
}
if (ircd->owner)
{
- this->AddCommand(CHANSERV, new CommandCSOwner(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSDeOwner(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSOwner());
+ this->AddCommand(CHANSERV, new CommandCSDeOwner());
}
}
void ChanServHelp(User *u)
diff --git a/src/core/cs_register.c b/src/core/cs_register.c
index 4949502e2..3c9946612 100644
--- a/src/core/cs_register.c
+++ b/src/core/cs_register.c
@@ -147,7 +147,7 @@ class CSRegister : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSRegister(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSRegister());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_sendpass.c b/src/core/cs_sendpass.c
index 4ea1da3be..b00607ce8 100644
--- a/src/core/cs_sendpass.c
+++ b/src/core/cs_sendpass.c
@@ -91,7 +91,7 @@ class CSSendPass : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSSendPass(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSSendPass());
if (!UseMail)
throw ModuleException("sendpass may not be loaded if UseMail is loaded");
diff --git a/src/core/cs_set.c b/src/core/cs_set.c
index 00d18a110..86021d77b 100644
--- a/src/core/cs_set.c
+++ b/src/core/cs_set.c
@@ -725,7 +725,7 @@ class CSSet : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSSet(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSSet());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_status.c b/src/core/cs_status.c
index d733d949a..ed6e2c0df 100644
--- a/src/core/cs_status.c
+++ b/src/core/cs_status.c
@@ -67,7 +67,7 @@ class CSStatus : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSStatus(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSStatus());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_suspend.c b/src/core/cs_suspend.c
index 08b1ecddf..48920d653 100644
--- a/src/core/cs_suspend.c
+++ b/src/core/cs_suspend.c
@@ -187,8 +187,8 @@ class CSSuspend : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSSuspend(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSUnSuspend(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSSuspend());
+ this->AddCommand(CHANSERV, new CommandCSUnSuspend());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_topic.c b/src/core/cs_topic.c
index 844ba12fd..c00c77fbd 100644
--- a/src/core/cs_topic.c
+++ b/src/core/cs_topic.c
@@ -89,7 +89,7 @@ class CSTopic : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSTopic(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSTopic());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/cs_xop.c b/src/core/cs_xop.c
index 916792f8b..9c0fce211 100644
--- a/src/core/cs_xop.c
+++ b/src/core/cs_xop.c
@@ -497,11 +497,11 @@ class CSXOP : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(CHANSERV, new CommandCSAOP(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSAOP());
if (ircd->halfop)
- this->AddCommand(CHANSERV, new CommandCSHOP(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSSOP(), MOD_UNIQUE);
- this->AddCommand(CHANSERV, new CommandCSVOP(), MOD_UNIQUE);
+ this->AddCommand(CHANSERV, new CommandCSHOP());
+ this->AddCommand(CHANSERV, new CommandCSSOP());
+ this->AddCommand(CHANSERV, new CommandCSVOP());
}
void ChanServHelp(User *u)
{
diff --git a/src/core/hs_del.c b/src/core/hs_del.c
index 83711335a..991ecb9ea 100644
--- a/src/core/hs_del.c
+++ b/src/core/hs_del.c
@@ -63,7 +63,7 @@ class HSDel : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(HOSTSERV, new CommandHSDel(), MOD_UNIQUE);
+ this->AddCommand(HOSTSERV, new CommandHSDel());
}
void HostServHelp(User *u)
{
diff --git a/src/core/hs_delall.c b/src/core/hs_delall.c
index 05f256f34..2fe6899e6 100644
--- a/src/core/hs_delall.c
+++ b/src/core/hs_delall.c
@@ -70,7 +70,7 @@ class HSDelAll : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(HOSTSERV, new CommandHSDelAll(), MOD_UNIQUE);
+ this->AddCommand(HOSTSERV, new CommandHSDelAll());
}
void HostServHelp(User *u)
{
diff --git a/src/core/hs_group.c b/src/core/hs_group.c
index 3011e3203..6c538ea40 100644
--- a/src/core/hs_group.c
+++ b/src/core/hs_group.c
@@ -82,7 +82,7 @@ class HSGroup : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(HOSTSERV, new CommandHSGroup(), MOD_UNIQUE);
+ this->AddCommand(HOSTSERV, new CommandHSGroup());
}
void HostServHelp(User *u)
{
diff --git a/src/core/hs_help.c b/src/core/hs_help.c
index 13b5e544f..5385790d5 100644
--- a/src/core/hs_help.c
+++ b/src/core/hs_help.c
@@ -45,7 +45,7 @@ class HSHelp : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(HOSTSERV, new CommandHSHelp(), MOD_UNIQUE);
+ this->AddCommand(HOSTSERV, new CommandHSHelp());
}
};
diff --git a/src/core/hs_list.c b/src/core/hs_list.c
index 69efbd320..c11a6f98a 100644
--- a/src/core/hs_list.c
+++ b/src/core/hs_list.c
@@ -151,7 +151,7 @@ class HSList : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(HOSTSERV, new CommandHSList(), MOD_UNIQUE);
+ this->AddCommand(HOSTSERV, new CommandHSList());
}
void HostServHelp(User *u)
{
diff --git a/src/core/hs_off.c b/src/core/hs_off.c
index ec83c97bc..13a9c98e9 100644
--- a/src/core/hs_off.c
+++ b/src/core/hs_off.c
@@ -56,7 +56,7 @@ class HSOff : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(HOSTSERV, new CommandHSOff(), MOD_UNIQUE);
+ this->AddCommand(HOSTSERV, new CommandHSOff());
}
void HostServHelp(User *u)
{
diff --git a/src/core/hs_on.c b/src/core/hs_on.c
index bbae6f73e..42b2d5533 100644
--- a/src/core/hs_on.c
+++ b/src/core/hs_on.c
@@ -71,7 +71,7 @@ class HSOn : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(HOSTSERV, new CommandHSOn(), MOD_UNIQUE);
+ this->AddCommand(HOSTSERV, new CommandHSOn());
}
void HostServHelp(User *u)
{
diff --git a/src/core/hs_set.c b/src/core/hs_set.c
index eac1cbe3e..649115a22 100644
--- a/src/core/hs_set.c
+++ b/src/core/hs_set.c
@@ -160,7 +160,7 @@ class HSSet : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(HOSTSERV, new CommandHSSet(), MOD_UNIQUE);
+ this->AddCommand(HOSTSERV, new CommandHSSet());
}
void HostServHelp(User *u)
{
diff --git a/src/core/hs_setall.c b/src/core/hs_setall.c
index 3bb04f593..71ba524b3 100644
--- a/src/core/hs_setall.c
+++ b/src/core/hs_setall.c
@@ -161,7 +161,7 @@ class HSSetAll : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(HOSTSERV, new CommandHSSetAll(), MOD_UNIQUE);
+ this->AddCommand(HOSTSERV, new CommandHSSetAll());
}
void HostServHelp(User *u)
{
diff --git a/src/core/ms_cancel.c b/src/core/ms_cancel.c
index 3626b852d..b0450dc87 100644
--- a/src/core/ms_cancel.c
+++ b/src/core/ms_cancel.c
@@ -79,7 +79,7 @@ class MSCancel : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSCancel(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSCancel());
}
void MemoServHelp(User *u)
{
diff --git a/src/core/ms_check.c b/src/core/ms_check.c
index 4bc5bc731..beb3943d5 100644
--- a/src/core/ms_check.c
+++ b/src/core/ms_check.c
@@ -96,7 +96,7 @@ class MSCheck : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSCheck(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSCheck());
}
void MemoServHelp(User *u)
{
diff --git a/src/core/ms_del.c b/src/core/ms_del.c
index d13e232e7..ad34b6bc8 100644
--- a/src/core/ms_del.c
+++ b/src/core/ms_del.c
@@ -152,7 +152,7 @@ class MSDel : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSDel(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSDel());
}
void MemoServHelp(User *u)
{
diff --git a/src/core/ms_help.c b/src/core/ms_help.c
index b79b7f622..e91269553 100644
--- a/src/core/ms_help.c
+++ b/src/core/ms_help.c
@@ -45,7 +45,7 @@ class MSHelp : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSHelp(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSHelp());
}
};
diff --git a/src/core/ms_info.c b/src/core/ms_info.c
index b418aa7e5..6b96cbede 100644
--- a/src/core/ms_info.c
+++ b/src/core/ms_info.c
@@ -209,7 +209,7 @@ class MSInfo : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSInfo(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSInfo());
}
void MemoServHelp(User *u)
{
diff --git a/src/core/ms_list.c b/src/core/ms_list.c
index e2dfc9b28..45ae6206f 100644
--- a/src/core/ms_list.c
+++ b/src/core/ms_list.c
@@ -116,7 +116,7 @@ class MSList : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSList(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSList());
}
void MemoServHelp(User *u)
{
diff --git a/src/core/ms_read.c b/src/core/ms_read.c
index a0d13ea95..5e548cddf 100644
--- a/src/core/ms_read.c
+++ b/src/core/ms_read.c
@@ -125,7 +125,7 @@ class MSRead : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSRead(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSRead());
}
void MemoServHelp(User *u)
{
diff --git a/src/core/ms_rsend.c b/src/core/ms_rsend.c
index 78f49803f..c9c03b9c9 100644
--- a/src/core/ms_rsend.c
+++ b/src/core/ms_rsend.c
@@ -86,7 +86,7 @@ class MSRSend : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSRSend(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSRSend());
if (!MSMemoReceipt)
throw ModuleException("Don't like memo reciepts, or something.");
diff --git a/src/core/ms_send.c b/src/core/ms_send.c
index 04c329878..d77088ee7 100644
--- a/src/core/ms_send.c
+++ b/src/core/ms_send.c
@@ -51,7 +51,7 @@ class MSSend : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSSend(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSSend());
}
void MemoServHelp(User *u)
{
diff --git a/src/core/ms_sendall.c b/src/core/ms_sendall.c
index aab1d71c2..2537b3438 100644
--- a/src/core/ms_sendall.c
+++ b/src/core/ms_sendall.c
@@ -72,7 +72,7 @@ class MSSendAll : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSSendAll(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSSendAll());
}
void MemoServHelp(User *u)
{
diff --git a/src/core/ms_set.c b/src/core/ms_set.c
index a149bb26a..4882a162c 100644
--- a/src/core/ms_set.c
+++ b/src/core/ms_set.c
@@ -260,7 +260,7 @@ class MSSet : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSSet(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSSet());
}
void MemoServHelp(User *u)
{
diff --git a/src/core/ms_staff.c b/src/core/ms_staff.c
index 6000c3205..b11a83555 100644
--- a/src/core/ms_staff.c
+++ b/src/core/ms_staff.c
@@ -70,7 +70,7 @@ class MSStaff : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(MEMOSERV, new CommandMSStaff(), MOD_UNIQUE);
+ this->AddCommand(MEMOSERV, new CommandMSStaff());
}
void MemoServHelp(User *u)
{
diff --git a/src/core/ns_access.c b/src/core/ns_access.c
index 82e05ad34..7949e3d7f 100644
--- a/src/core/ns_access.c
+++ b/src/core/ns_access.c
@@ -180,7 +180,7 @@ class NSAccess : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSAccess(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSAccess());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_alist.c b/src/core/ns_alist.c
index 28eb8bcb9..64bd06107 100644
--- a/src/core/ns_alist.c
+++ b/src/core/ns_alist.c
@@ -148,7 +148,7 @@ class NSAList : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSAList(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSAList());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_drop.c b/src/core/ns_drop.c
index 8bd7d6c18..6b8f6eeb3 100644
--- a/src/core/ns_drop.c
+++ b/src/core/ns_drop.c
@@ -116,7 +116,7 @@ class NSDrop : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSDrop(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSDrop());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_forbid.c b/src/core/ns_forbid.c
index ace11292f..098830002 100644
--- a/src/core/ns_forbid.c
+++ b/src/core/ns_forbid.c
@@ -109,7 +109,7 @@ class NSForbid : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSForbid(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSForbid());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_getemail.c b/src/core/ns_getemail.c
index 4dde78f8b..12c116568 100644
--- a/src/core/ns_getemail.c
+++ b/src/core/ns_getemail.c
@@ -77,7 +77,7 @@ class NSGetEMail : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSGetEMail(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSGetEMail());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_getpass.c b/src/core/ns_getpass.c
index 242d63352..c8f26bab8 100644
--- a/src/core/ns_getpass.c
+++ b/src/core/ns_getpass.c
@@ -81,7 +81,7 @@ class NSGetPass : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSGetPass(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSGetPass());
char tmp_pass[PASSMAX];
if (!enc_decrypt("tmp", tmp_pass, PASSMAX - 1))
diff --git a/src/core/ns_ghost.c b/src/core/ns_ghost.c
index 8546569f4..b17f1f894 100644
--- a/src/core/ns_ghost.c
+++ b/src/core/ns_ghost.c
@@ -95,7 +95,7 @@ class NSGhost : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSGhost(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSGhost());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_group.c b/src/core/ns_group.c
index 5c3cde993..484a44faf 100644
--- a/src/core/ns_group.c
+++ b/src/core/ns_group.c
@@ -224,8 +224,8 @@ class NSGroup : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSGroup(), MOD_UNIQUE);
- this->AddCommand(NICKSERV, new CommandNSGList(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSGroup());
+ this->AddCommand(NICKSERV, new CommandNSGList());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_help.c b/src/core/ns_help.c
index dc6db0814..81d6963d9 100644
--- a/src/core/ns_help.c
+++ b/src/core/ns_help.c
@@ -61,7 +61,7 @@ class NSHelp : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSHelp(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSHelp());
}
};
diff --git a/src/core/ns_identify.c b/src/core/ns_identify.c
index 2fe7acdef..8eb9c661c 100644
--- a/src/core/ns_identify.c
+++ b/src/core/ns_identify.c
@@ -129,8 +129,8 @@ class NSIdentify : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSIdentify("IDENTIFY"), MOD_UNIQUE);
- this->AddCommand(NICKSERV, new CommandNSIdentify("ID"), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSIdentify("IDENTIFY"));
+ this->AddCommand(NICKSERV, new CommandNSIdentify("ID"));
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_info.c b/src/core/ns_info.c
index cfcfc4299..6b7ced066 100644
--- a/src/core/ns_info.c
+++ b/src/core/ns_info.c
@@ -217,7 +217,7 @@ class NSInfo : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSInfo(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSInfo());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_list.c b/src/core/ns_list.c
index 82c72c149..24616edf3 100644
--- a/src/core/ns_list.c
+++ b/src/core/ns_list.c
@@ -219,7 +219,7 @@ class NSList : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSList(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSList());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_logout.c b/src/core/ns_logout.c
index 81f25efe7..289fbae92 100644
--- a/src/core/ns_logout.c
+++ b/src/core/ns_logout.c
@@ -113,7 +113,7 @@ class NSLogout : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSLogout(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSLogout());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_recover.c b/src/core/ns_recover.c
index d92f0292e..bc162ae9e 100644
--- a/src/core/ns_recover.c
+++ b/src/core/ns_recover.c
@@ -114,7 +114,7 @@ class NSRecover : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSRecover(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSRecover());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_register.c b/src/core/ns_register.c
index 958e4d94b..7471f7bd9 100644
--- a/src/core/ns_register.c
+++ b/src/core/ns_register.c
@@ -385,9 +385,9 @@ class NSRegister : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSRegister(), MOD_UNIQUE);
- this->AddCommand(NICKSERV, new CommandNSConfirm("CONFIRM", 0, 1), MOD_UNIQUE);
- this->AddCommand(NICKSERV, new CommandNSResend(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSRegister());
+ this->AddCommand(NICKSERV, new CommandNSConfirm("CONFIRM", 0, 1));
+ this->AddCommand(NICKSERV, new CommandNSResend());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_release.c b/src/core/ns_release.c
index 760277fe3..0d34d755d 100644
--- a/src/core/ns_release.c
+++ b/src/core/ns_release.c
@@ -96,7 +96,7 @@ class NSRelease : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSRelease(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSRelease());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_saset.c b/src/core/ns_saset.c
index 00fc6986d..74472fcaa 100644
--- a/src/core/ns_saset.c
+++ b/src/core/ns_saset.c
@@ -583,7 +583,7 @@ public:
this->SetVersion("$Id: ns_set.c 850 2005-08-07 14:52:04Z geniusdex $");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSSASet(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSSASet());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_sendpass.c b/src/core/ns_sendpass.c
index 0431e68fe..70650deed 100644
--- a/src/core/ns_sendpass.c
+++ b/src/core/ns_sendpass.c
@@ -92,7 +92,7 @@ class NSSendPass : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSSendPass(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSSendPass());
if (!UseMail)
throw ModuleException("Not using mail, whut.");
diff --git a/src/core/ns_set.c b/src/core/ns_set.c
index f7425aa42..41c30d4e8 100644
--- a/src/core/ns_set.c
+++ b/src/core/ns_set.c
@@ -540,7 +540,7 @@ class NSSet : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSSet(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSSet());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_status.c b/src/core/ns_status.c
index 551a5421f..b6e9f84cb 100644
--- a/src/core/ns_status.c
+++ b/src/core/ns_status.c
@@ -70,7 +70,7 @@ class NSStatus : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSStatus(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSStatus());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_suspend.c b/src/core/ns_suspend.c
index 7a6439489..1c8df2bfb 100644
--- a/src/core/ns_suspend.c
+++ b/src/core/ns_suspend.c
@@ -182,8 +182,8 @@ class NSSuspend : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSSuspend(), MOD_UNIQUE);
- this->AddCommand(NICKSERV, new CommandNSUnSuspend(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSSuspend());
+ this->AddCommand(NICKSERV, new CommandNSUnSuspend());
}
void NickServHelp(User *u)
{
diff --git a/src/core/ns_update.c b/src/core/ns_update.c
index dc834794f..3f0433d11 100644
--- a/src/core/ns_update.c
+++ b/src/core/ns_update.c
@@ -58,7 +58,7 @@ class NSUpdate : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(NICKSERV, new CommandNSUpdate(), MOD_UNIQUE);
+ this->AddCommand(NICKSERV, new CommandNSUpdate());
}
void NickServHelp(User *u)
{
diff --git a/src/core/os_akill.c b/src/core/os_akill.c
index af0581456..525a1c2aa 100644
--- a/src/core/os_akill.c
+++ b/src/core/os_akill.c
@@ -329,7 +329,7 @@ class OSAKill : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSAKill(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSAKill());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_chankill.c b/src/core/os_chankill.c
index f9c1a6b65..f6c67478f 100644
--- a/src/core/os_chankill.c
+++ b/src/core/os_chankill.c
@@ -109,7 +109,7 @@ class OSChanKill : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSChanKill(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSChanKill());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_chanlist.c b/src/core/os_chanlist.c
index 2e34754ac..cc7f470a0 100644
--- a/src/core/os_chanlist.c
+++ b/src/core/os_chanlist.c
@@ -86,7 +86,7 @@ class OSChanList : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSChanList(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSChanList());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_clearmodes.c b/src/core/os_clearmodes.c
index 933cc51fd..8d948c9d7 100644
--- a/src/core/os_clearmodes.c
+++ b/src/core/os_clearmodes.c
@@ -251,7 +251,7 @@ class OSClearModes : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSClearModes(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSClearModes());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_defcon.c b/src/core/os_defcon.c
index 6fc361314..f6c0d5df8 100644
--- a/src/core/os_defcon.c
+++ b/src/core/os_defcon.c
@@ -97,7 +97,7 @@ class OSDEFCON : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSDEFCON(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSDEFCON());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_global.c b/src/core/os_global.c
index 399e44566..c3e143c78 100644
--- a/src/core/os_global.c
+++ b/src/core/os_global.c
@@ -53,7 +53,7 @@ class OSGlobal : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSGlobal(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSGlobal());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_help.c b/src/core/os_help.c
index 74bfb5d20..30fd51bca 100644
--- a/src/core/os_help.c
+++ b/src/core/os_help.c
@@ -44,7 +44,7 @@ class OSHelp : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSHelp(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSHelp());
}
};
diff --git a/src/core/os_ignore.c b/src/core/os_ignore.c
index a83ff0dea..492b7dcde 100644
--- a/src/core/os_ignore.c
+++ b/src/core/os_ignore.c
@@ -138,7 +138,7 @@ class OSIgnore : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSIgnore(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSIgnore());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_jupe.c b/src/core/os_jupe.c
index f029853d7..19e5f58ee 100644
--- a/src/core/os_jupe.c
+++ b/src/core/os_jupe.c
@@ -67,7 +67,7 @@ class OSJupe : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSJupe(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSJupe());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_kick.c b/src/core/os_kick.c
index dc04f61a2..b20308b80 100644
--- a/src/core/os_kick.c
+++ b/src/core/os_kick.c
@@ -72,7 +72,7 @@ class OSKick : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSKick(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSKick());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_mode.c b/src/core/os_mode.c
index 955601336..0f3b90eb2 100644
--- a/src/core/os_mode.c
+++ b/src/core/os_mode.c
@@ -68,7 +68,7 @@ class OSMode : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSMode(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSMode());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_modinfo.c b/src/core/os_modinfo.c
index 450fc4986..8ad9c6dea 100644
--- a/src/core/os_modinfo.c
+++ b/src/core/os_modinfo.c
@@ -73,7 +73,7 @@ class OSModInfo : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSModInfo(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSModInfo());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_modlist.c b/src/core/os_modlist.c
index 8b23c0b47..4af3f5305 100644
--- a/src/core/os_modlist.c
+++ b/src/core/os_modlist.c
@@ -177,7 +177,7 @@ class OSModList : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSModList(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSModList());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_modload.c b/src/core/os_modload.c
index 493dd3659..3544e5ab6 100644
--- a/src/core/os_modload.c
+++ b/src/core/os_modload.c
@@ -64,7 +64,7 @@ class OSModLoad : public Module
this->SetType(CORE);
this->SetPermanent(true);
- this->AddCommand(OPERSERV, new CommandOSModLoad(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSModLoad());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_modunload.c b/src/core/os_modunload.c
index eb8fe8d6f..dd764883a 100644
--- a/src/core/os_modunload.c
+++ b/src/core/os_modunload.c
@@ -66,7 +66,7 @@ class OSModUnLoad : public Module
this->SetType(CORE);
this->SetPermanent(true);
- this->AddCommand(OPERSERV, new CommandOSModUnLoad(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSModUnLoad());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_news.c b/src/core/os_news.c
index 3100ffcc0..7db5e1103 100644
--- a/src/core/os_news.c
+++ b/src/core/os_news.c
@@ -355,10 +355,10 @@ class OSNews : public Module
this->SetType(CORE);
OSLogonNews = new CommandOSLogonNews();
- this->AddCommand(OPERSERV, OSLogonNews, MOD_UNIQUE);
+ this->AddCommand(OPERSERV, OSLogonNews);
OSOperNews = new CommandOSOperNews();
- this->AddCommand(OPERSERV, OSOperNews, MOD_UNIQUE);
- this->AddCommand(OPERSERV, new CommandOSRandomNews(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, OSOperNews);
+ this->AddCommand(OPERSERV, new CommandOSRandomNews());
ModuleManager::Attach(I_OnReload, this);
}
diff --git a/src/core/os_noop.c b/src/core/os_noop.c
index 70e16c596..0b7b02940 100644
--- a/src/core/os_noop.c
+++ b/src/core/os_noop.c
@@ -80,7 +80,7 @@ class OSNOOP : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSNOOP(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSNOOP());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_oline.c b/src/core/os_oline.c
index f394a3449..3b54a6892 100644
--- a/src/core/os_oline.c
+++ b/src/core/os_oline.c
@@ -71,7 +71,7 @@ class OSOLine : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSOLine(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSOLine());
if (!ircd->omode)
throw ModuleException("Your IRCd does not support OMODE.");
diff --git a/src/core/os_quit.c b/src/core/os_quit.c
index 7682689ad..9ae3ca104 100644
--- a/src/core/os_quit.c
+++ b/src/core/os_quit.c
@@ -56,7 +56,7 @@ class OSQuit : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSQuit(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSQuit());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_reload.c b/src/core/os_reload.c
index 208565574..c7bf78615 100644
--- a/src/core/os_reload.c
+++ b/src/core/os_reload.c
@@ -55,7 +55,7 @@ class OSReload : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSReload(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSReload());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_restart.c b/src/core/os_restart.c
index b80f88c5a..4787e8d1c 100644
--- a/src/core/os_restart.c
+++ b/src/core/os_restart.c
@@ -52,7 +52,7 @@ class OSRestart : public Module
this->SetAuthor("Anope");
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSRestart(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSRestart());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_session.c b/src/core/os_session.c
index 030be4a5f..31371811c 100644
--- a/src/core/os_session.c
+++ b/src/core/os_session.c
@@ -459,8 +459,8 @@ class OSSession : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSSession(), MOD_UNIQUE);
- this->AddCommand(OPERSERV, new CommandOSException(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSSession());
+ this->AddCommand(OPERSERV, new CommandOSException());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_set.c b/src/core/os_set.c
index 60b5d5e96..4cca7f685 100644
--- a/src/core/os_set.c
+++ b/src/core/os_set.c
@@ -299,7 +299,7 @@ class OSSet : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSSet(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSSet());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_sgline.c b/src/core/os_sgline.c
index 5b33e756b..5d4293066 100644
--- a/src/core/os_sgline.c
+++ b/src/core/os_sgline.c
@@ -328,7 +328,7 @@ class OSSGLine : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSSGLine(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSSGLine());
if (!ircd->sgline)
throw ModuleException("Your IRCd does not support SGLine");
diff --git a/src/core/os_shutdown.c b/src/core/os_shutdown.c
index ae141f631..cae062ea3 100644
--- a/src/core/os_shutdown.c
+++ b/src/core/os_shutdown.c
@@ -57,7 +57,7 @@ class OSShutdown : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSShutdown(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSShutdown());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_sqline.c b/src/core/os_sqline.c
index cdbbdfaa7..e3d229837 100644
--- a/src/core/os_sqline.c
+++ b/src/core/os_sqline.c
@@ -314,7 +314,7 @@ class OSSQLine : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSSQLine(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSSQLine());
if (!ircd->sqline)
throw ModuleException("Your IRCd does not support QLines.");
diff --git a/src/core/os_staff.c b/src/core/os_staff.c
index 3dfbde469..b8744edbc 100644
--- a/src/core/os_staff.c
+++ b/src/core/os_staff.c
@@ -83,7 +83,7 @@ class OSStaff : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSStaff(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSStaff());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_stats.c b/src/core/os_stats.c
index 1260459a6..ec32e3c87 100644
--- a/src/core/os_stats.c
+++ b/src/core/os_stats.c
@@ -321,7 +321,7 @@ class OSStats : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSStats(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSStats());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_svsnick.c b/src/core/os_svsnick.c
index 3dfdaf12d..f38772593 100644
--- a/src/core/os_svsnick.c
+++ b/src/core/os_svsnick.c
@@ -90,7 +90,7 @@ class OSSVSNick : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSSVSNick(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSSVSNick());
if (!ircd->svsnick)
throw ModuleException("Your IRCd does not support SVSNICK");
diff --git a/src/core/os_szline.c b/src/core/os_szline.c
index 8b0cfdc9d..cb60937f9 100644
--- a/src/core/os_szline.c
+++ b/src/core/os_szline.c
@@ -313,7 +313,7 @@ class OSSZLine : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSSZLine(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSSZLine());
if (!ircd->szline)
throw ModuleException("Your IRCd does not support ZLINEs");
diff --git a/src/core/os_umode.c b/src/core/os_umode.c
index 9868f4653..edce7fbf2 100644
--- a/src/core/os_umode.c
+++ b/src/core/os_umode.c
@@ -76,7 +76,7 @@ class OSUMode : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSUMode(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSUMode());
if (!ircd->umode)
throw ModuleException("Your IRCd does not support setting umodes");
diff --git a/src/core/os_update.c b/src/core/os_update.c
index 4a9040a13..73237be86 100644
--- a/src/core/os_update.c
+++ b/src/core/os_update.c
@@ -45,7 +45,7 @@ class OSUpdate : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSUpdate(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSUpdate());
}
void OperServHelp(User *u)
{
diff --git a/src/core/os_userlist.c b/src/core/os_userlist.c
index 8ce483935..6ec8d113b 100644
--- a/src/core/os_userlist.c
+++ b/src/core/os_userlist.c
@@ -91,7 +91,7 @@ class OSUserList : public Module
this->SetVersion("$Id$");
this->SetType(CORE);
- this->AddCommand(OPERSERV, new CommandOSUserList(), MOD_UNIQUE);
+ this->AddCommand(OPERSERV, new CommandOSUserList());
}
void OperServHelp(User *u)
{
diff --git a/src/core/ss_main.c b/src/core/ss_main.c
index 8dbea1271..7096385e1 100644
--- a/src/core/ss_main.c
+++ b/src/core/ss_main.c
@@ -41,7 +41,7 @@ class SSMain : public Module
this->SetType(CORE);
this->SetPermanent(true);
- this->AddCommand(cmdTable, new CommandSSHelp(), MOD_HEAD);
+ this->AddCommand(cmdTable, new CommandSSHelp());
ModuleManager::Attach(I_OnBotPreLoad, this);
statserv = findbot("StatServ");
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);
diff --git a/src/modules/cs_appendtopic.c b/src/modules/cs_appendtopic.c
index ba178ed07..c91d57e2e 100644
--- a/src/modules/cs_appendtopic.c
+++ b/src/modules/cs_appendtopic.c
@@ -143,7 +143,7 @@ class CSAppendTopic : public Module
this->SetVersion(VERSION);
this->SetType(SUPPORTED);
- this->AddCommand(CHANSERV, new CommandCSAppendTopic(), MOD_HEAD);
+ this->AddCommand(CHANSERV, new CommandCSAppendTopic());
/* English (US) */
const char* langtable_en_us[] = {
diff --git a/src/modules/cs_enforce.c b/src/modules/cs_enforce.c
index 2e4182754..b8bd07102 100644
--- a/src/modules/cs_enforce.c
+++ b/src/modules/cs_enforce.c
@@ -259,7 +259,7 @@ class CSEnforce : public Module
this->SetVersion(VERSION);
this->SetType(SUPPORTED);
- this->AddCommand(CHANSERV, new CommandCSEnforce(), MOD_HEAD);
+ this->AddCommand(CHANSERV, new CommandCSEnforce());
/* English (US) */
const char* langtable_en_us[] = {
diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c
index 080b54d30..1bce0bb30 100644
--- a/src/modules/cs_tban.c
+++ b/src/modules/cs_tban.c
@@ -92,7 +92,7 @@ class CSTBan : public Module
{
me = this;
- this->AddCommand(CHANSERV, new CommandCSTBan(), MOD_HEAD);
+ this->AddCommand(CHANSERV, new CommandCSTBan());
this->SetAuthor(AUTHOR);
this->SetVersion(VERSION);
diff --git a/src/modules/hs_request.c b/src/modules/hs_request.c
index 7116b98ae..d6ecb4889 100644
--- a/src/modules/hs_request.c
+++ b/src/modules/hs_request.c
@@ -405,10 +405,10 @@ class HSRequest : public Module
{
me = this;
- this->AddCommand(HOSTSERV, new CommandHSRequest(), MOD_HEAD);
- this->AddCommand(HOSTSERV, new CommandHSActivate(), MOD_HEAD);
- this->AddCommand(HOSTSERV, new CommandHSReject(), MOD_HEAD);
- this->AddCommand(HOSTSERV, new CommandHSWaiting(), MOD_HEAD);
+ this->AddCommand(HOSTSERV, new CommandHSRequest());
+ this->AddCommand(HOSTSERV, new CommandHSActivate());
+ this->AddCommand(HOSTSERV, new CommandHSReject());
+ this->AddCommand(HOSTSERV, new CommandHSWaiting());
ModuleManager::Attach(I_OnPreCommand, this);
ModuleManager::Attach(I_OnSaveDatabase, this);
diff --git a/src/modules/os_info.c b/src/modules/os_info.c
index 04ace5f12..d521bdfe3 100644
--- a/src/modules/os_info.c
+++ b/src/modules/os_info.c
@@ -229,8 +229,8 @@ class OSInfo : public Module
if (mLoadConfig())
throw ModuleException("Unable to load config");
- this->AddCommand(NICKSERV, new CommandNSOInfo(), MOD_HEAD);
- this->AddCommand(CHANSERV, new CommandCSOInfo(), MOD_HEAD);
+ this->AddCommand(NICKSERV, new CommandNSOInfo());
+ this->AddCommand(CHANSERV, new CommandCSOInfo());
ModuleManager::Attach(I_OnPostCommand, this);
ModuleManager::Attach(I_OnSaveDatabase, this);