diff options
author | Adam <Adam@anope.org> | 2017-01-27 08:40:26 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-01-27 08:40:26 -0500 |
commit | 9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (patch) | |
tree | 618a4f0e173166e6f966a7cce78f06c3c1c3299f /modules/hostserv/set.cpp | |
parent | 16ca76c2e7ab287e480185fbb03a0bb438351eda (diff) |
Store CommandInfo in CommandSource instead of just command/permission
Diffstat (limited to 'modules/hostserv/set.cpp')
-rw-r--r-- | modules/hostserv/set.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/hostserv/set.cpp b/modules/hostserv/set.cpp index 8162fa80d..4b506165e 100644 --- a/modules/hostserv/set.cpp +++ b/modules/hostserv/set.cpp @@ -39,7 +39,7 @@ class CommandHSSet : public Command source.Reply(" "); source.Reply(_("Available options:")); // XXX this entire thing is dup - Anope::string this_name = source.command; + Anope::string this_name = source.GetCommand(); bool hide_privileged_commands = Config->GetBlock("options")->Get<bool>("hideprivilegedcommands"), hide_registered_commands = Config->GetBlock("options")->Get<bool>("hideregisteredcommands"); for (CommandInfo::map::const_iterator it = source.service->commands.begin(), it_end = source.service->commands.end(); it != it_end; ++it) @@ -58,7 +58,7 @@ class CommandHSSet : public Command else if (hide_privileged_commands && !info.permission.empty() && !source.HasCommand(info.permission)) continue; - source.command = it->first; + source.SetCommand(it->first); c->OnServHelp(source); } } |