summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-04-29 21:12:49 -0400
committerAdam <Adam@anope.org>2011-05-16 04:10:15 -0400
commitb999c6ca53d6b1dfd54688d21718293858f6bcc7 (patch)
tree1090a9d538010eb4026daac7d4b1dbd131635044 /src/command.cpp
parent583954d3a1db658281a9afb7b7dd6773726c8c11 (diff)
Expand more on m_alias and changed some std::string usage in sockets.cpp to use Anope::string
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp7
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; }