summaryrefslogtreecommitdiff
path: root/modules/help.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2017-01-27 08:40:26 -0500
committerAdam <Adam@anope.org>2017-01-27 08:40:26 -0500
commit9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (patch)
tree618a4f0e173166e6f966a7cce78f06c3c1c3299f /modules/help.cpp
parent16ca76c2e7ab287e480185fbb03a0bb438351eda (diff)
Store CommandInfo in CommandSource instead of just command/permission
Diffstat (limited to 'modules/help.cpp')
-rw-r--r--modules/help.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/help.cpp b/modules/help.cpp
index b032d11a1..2776173e0 100644
--- a/modules/help.cpp
+++ b/modules/help.cpp
@@ -47,7 +47,7 @@ class CommandHelp : public Command
if (MOD_RESULT == EVENT_STOP)
return;
- Anope::string source_command = source.command;
+ Anope::string source_command = source.GetCommand();
const ServiceBot *bi = source.service;
const CommandInfo::map &map = source.c ? Config->Fantasy : bi->commands;
bool hide_privileged_commands = Config->GetBlock("options")->Get<bool>("hideprivilegedcommands"),
@@ -96,7 +96,7 @@ class CommandHelp : public Command
}
}
- source.command = c_name;
+ source.SetCommand(c_name);
c->OnServHelp(source);
}
@@ -149,7 +149,7 @@ class CommandHelp : public Command
// Allow unregistered users to see help for commands that they explicitly request help for
const Anope::string &subcommand = params.size() > max ? params[max] : "";
- source.command = it->first;
+ source.SetCommand(it->first);
c->SendSyntax(source);
if (!c->OnHelp(source, subcommand))