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 | |
| parent | 16ca76c2e7ab287e480185fbb03a0bb438351eda (diff) | |
Store CommandInfo in CommandSource instead of just command/permission
Diffstat (limited to 'modules/hostserv')
| -rw-r--r-- | modules/hostserv/list.cpp | 2 | ||||
| -rw-r--r-- | modules/hostserv/set.cpp | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/modules/hostserv/list.cpp b/modules/hostserv/list.cpp index 8659675d4..baafc5837 100644 --- a/modules/hostserv/list.cpp +++ b/modules/hostserv/list.cpp @@ -149,7 +149,7 @@ class CommandHSList : public Command "\n" " {0} #1-3\n" " Lists the first three entries."), - source.command); + source.GetCommand()); return true; } }; 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); } } |
