summaryrefslogtreecommitdiff
path: root/modules/extra/cs_set_misc.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/extra/cs_set_misc.cpp')
-rw-r--r--modules/extra/cs_set_misc.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/modules/extra/cs_set_misc.cpp b/modules/extra/cs_set_misc.cpp
index e91f32860..301112769 100644
--- a/modules/extra/cs_set_misc.cpp
+++ b/modules/extra/cs_set_misc.cpp
@@ -16,8 +16,9 @@ class CommandCSSetMisc : public Command
{
Anope::string Desc;
public:
- CommandCSSetMisc(const Anope::string &cname, const Anope::string &desc, const Anope::string &cpermission = "") : Command(cname, 1, 2, cpermission), Desc(desc)
+ CommandCSSetMisc(const Anope::string &cname, const Anope::string &cdesc, const Anope::string &cpermission = "") : Command(cname, 1, 2, cpermission), Desc(cdesc)
{
+ this->SetDesc(cdesc);
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -43,17 +44,12 @@ class CommandCSSetMisc : public Command
{
SyntaxError(source, "SET", LanguageString::CHAN_SET_SYNTAX);
}
-
- void OnServHelp(CommandSource &source)
- {
- source.Reply(" %-10s %s", this->name.c_str(), this->Desc.c_str());
- }
};
class CommandCSSASetMisc : public CommandCSSetMisc
{
public:
- CommandCSSASetMisc(const Anope::string &cname, const Anope::string &desc) : CommandCSSetMisc(cname, desc, "chanserv/saset/" + cname)
+ CommandCSSASetMisc(const Anope::string &cname, const Anope::string &cdesc) : CommandCSSetMisc(cname, cdesc, "chanserv/saset/" + cname)
{
}