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/botserv/set.cpp | |
parent | 16ca76c2e7ab287e480185fbb03a0bb438351eda (diff) |
Store CommandInfo in CommandSource instead of just command/permission
Diffstat (limited to 'modules/botserv/set.cpp')
-rw-r--r-- | modules/botserv/set.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/botserv/set.cpp b/modules/botserv/set.cpp index 6845281cb..da3b42f92 100644 --- a/modules/botserv/set.cpp +++ b/modules/botserv/set.cpp @@ -41,7 +41,7 @@ class CommandBSSet : public Command "Available options:")); bool hide_privileged_commands = Config->GetBlock("options")->Get<bool>("hideprivilegedcommands"), hide_registered_commands = Config->GetBlock("options")->Get<bool>("hideregisteredcommands"); - Anope::string this_name = source.command; + Anope::string this_name = source.GetCommand(); for (CommandInfo::map::const_iterator it = source.service->commands.begin(), it_end = source.service->commands.end(); it != it_end; ++it) { const Anope::string &c_name = it->first; @@ -58,7 +58,7 @@ class CommandBSSet : public Command if (hide_privileged_commands && !info.permission.empty() && !source.HasCommand(info.permission)) continue; - source.command = it->first; + source.SetCommand(it->first); command->OnServHelp(source); } } @@ -192,7 +192,7 @@ class CommandBSSetPrivate : public Command } else { - this->OnSyntaxError(source, source.command); + this->OnSyntaxError(source, source.GetCommand()); } } |