diff options
author | Adam <Adam@anope.org> | 2013-04-08 23:36:14 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-04-08 23:37:42 -0500 |
commit | 0a3d27a91f826db7c3bb639901450a5b00c80b64 (patch) | |
tree | c1045d56cd43ff6775221c897ab28e27faa56ad3 /src/command.cpp | |
parent | bcd85ca68281b8f10d4357d6f7daeced4b79a9b4 (diff) |
Made XOP privileges configurable
Diffstat (limited to 'src/command.cpp')
-rw-r--r-- | src/command.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/command.cpp b/src/command.cpp index db30a25f3..9d058fefb 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -178,14 +178,14 @@ void Command::RequireUser(bool b) this->require_user = b; } -const Anope::string &Command::GetDesc() const +const Anope::string Command::GetDesc(CommandSource &) const { return this->desc; } void Command::OnServHelp(CommandSource &source) { - source.Reply(" %-14s %s", source.command.c_str(), Language::Translate(source.nc, this->GetDesc().c_str())); + source.Reply(" %-14s %s", source.command.c_str(), Language::Translate(source.nc, this->GetDesc(source).c_str())); } bool Command::OnHelp(CommandSource &source, const Anope::string &subcommand) { return false; } |