summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/command.cpp b/src/command.cpp
index 398f4249c..ddf9a6622 100644
--- a/src/command.cpp
+++ b/src/command.cpp
@@ -64,7 +64,15 @@ Command::~Command()
this->module->DelCommand(this->service, this);
}
-void Command::OnServHelp(CommandSource &source) { }
+void Command::SetDesc(const Anope::string &d)
+{
+ this->desc = d;
+}
+
+void Command::OnServHelp(CommandSource &source)
+{
+ source.Reply(" %-14s %s", this->name.c_str(), _(this->desc.c_str()));
+}
bool Command::OnHelp(CommandSource &source, const Anope::string &subcommand) { return false; }