summaryrefslogtreecommitdiff
path: root/modules/commands/cs_saset.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-12-22 14:49:48 -0500
committerAdam <Adam@anope.org>2012-12-22 14:49:48 -0500
commitdc751bd2f10ab498352ee8a64d2c4b0dcac7c4ea (patch)
treee2652e8831fc1c77d5e46d58d8c4a236d0bc4fa5 /modules/commands/cs_saset.cpp
parent0cde0aee34a658e8059106ee51641cac2f48d92a (diff)
Combine all of the set modules now that having them split apart is almost completely pointless
Diffstat (limited to 'modules/commands/cs_saset.cpp')
-rw-r--r--modules/commands/cs_saset.cpp73
1 files changed, 0 insertions, 73 deletions
diff --git a/modules/commands/cs_saset.cpp b/modules/commands/cs_saset.cpp
deleted file mode 100644
index 211148e13..000000000
--- a/modules/commands/cs_saset.cpp
+++ /dev/null
@@ -1,73 +0,0 @@
-/* ChanServ core functions
- *
- * (C) 2003-2012 Anope Team
- * Contact us at team@anope.org
- *
- * Please read COPYING and README for further details.
- *
- * Based on the original code of Epona by Lara.
- * Based on the original code of Services by Andy Church.
- */
-
-/*************************************************************************/
-
-#include "module.h"
-
-class CommandCSSASet : public Command
-{
- public:
- CommandCSSASet(Module *creator) : Command(creator, "chanserv/saset", 2, 3)
- {
- this->SetDesc(_("Forcefully set channel options and information"));
- this->SetSyntax(_("\037option\037 \037channel\037 \037parameters\037"));
- }
-
- void Execute(CommandSource &source, const std::vector<Anope::string> &params) anope_override
- {
- this->OnSyntaxError(source, "");
- return;
- }
-
- bool OnHelp(CommandSource &source, const Anope::string &subcommand) anope_override
- {
- this->SendSyntax(source);
- source.Reply(" ");
- source.Reply(_("Allows Services Operators to forcefully change settings\n"
- "on channels.\n"
- " \n"
- "Available options:"));
- Anope::string this_name = source.command;
- for (CommandInfo::map::const_iterator it = source.service->commands.begin(), it_end = source.service->commands.end(); it != it_end; ++it)
- {
- const Anope::string &c_name = it->first;
- const CommandInfo &info = it->second;
- if (c_name.find_ci(this_name + " ") == 0)
- {
- ServiceReference<Command> command("Command", info.name);
- if (command)
- {
- source.command = it->first;
- command->OnServHelp(source);
- }
- }
- }
- source.Reply(_("Type \002%s%s HELP SASET \037option\037\002 for more information on a\n"
- "particular option."), Config->UseStrictPrivMsgString.c_str(), source.service->nick.c_str());
- return true;
- }
-};
-
-class CSSASet : public Module
-{
- CommandCSSASet commandcssaset;
-
- public:
- CSSASet(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, CORE),
- commandcssaset(this)
- {
- this->SetAuthor("Anope");
-
- }
-};
-
-MODULE_INIT(CSSASet)