diff options
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/command.cpp b/src/command.cpp index cc23a72a5..04295bbe6 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -69,9 +69,14 @@ void Command::SetDesc(const Anope::string &d) this->desc = d; } +const Anope::string &Command::GetDesc() const +{ + return this->desc; +} + void Command::OnServHelp(CommandSource &source) { - source.Reply(" %-14s %s", this->name.c_str(), _(this->desc.c_str())); + source.Reply(" %-14s %s", this->name.c_str(), _(this->GetDesc().c_str())); } bool Command::OnHelp(CommandSource &source, const Anope::string &subcommand) { return false; } |