From 9ad06f49bbb3824139b0c0ee0a74898a18c8f735 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 27 Jan 2017 08:40:26 -0500 Subject: Store CommandInfo in CommandSource instead of just command/permission --- modules/hostserv/list.cpp | 2 +- modules/hostserv/set.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/hostserv') 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("hideprivilegedcommands"), hide_registered_commands = Config->GetBlock("options")->Get("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); } } -- cgit