summaryrefslogtreecommitdiff
path: root/modules/core/os_modinfo.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-04 21:59:01 -0400
committerAdam <Adam@anope.org>2011-08-04 21:59:01 -0400
commit9ec18a3b020932eee6242c878149c484f49b13cb (patch)
tree6f0470e27bf4f3ced0f6833db00134f4b29a79a9 /modules/core/os_modinfo.cpp
parent773a1f3075fa12700d41598c0b8a8dd7caf9011e (diff)
Added a command:permission setting
Diffstat (limited to 'modules/core/os_modinfo.cpp')
-rw-r--r--modules/core/os_modinfo.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/modules/core/os_modinfo.cpp b/modules/core/os_modinfo.cpp
index d62a7ebce..38d9cf905 100644
--- a/modules/core/os_modinfo.cpp
+++ b/modules/core/os_modinfo.cpp
@@ -43,11 +43,13 @@ class CommandOSModInfo : public Command
{
BotInfo *bi = it->second;
- for (command_map::const_iterator cit = bi->commands.begin(), cit_end = bi->commands.end(); cit != cit_end; ++cit)
+ for (BotInfo::command_map::const_iterator cit = bi->commands.begin(), cit_end = bi->commands.end(); cit != cit_end; ++cit)
{
- if (cit->second != s->name)
+ const Anope::string &c_name = cit->first;
+ const CommandInfo &info = cit->second;
+ if (info.name != s->name)
continue;
- source.Reply(_(" Command \002%s\002 on \002%s\002 is linked to \002%s\002"), cit->first.c_str(), bi->nick.c_str(), s->name.c_str());
+ source.Reply(_(" Command \002%s\002 on \002%s\002 is linked to \002%s\002"), c_name.c_str(), bi->nick.c_str(), s->name.c_str());
}
}
}
@@ -70,7 +72,7 @@ class CommandOSModInfo : public Command
class CommandOSModList : public Command
{
public:
- CommandOSModList(Module *creator) : Command(creator, "operserv/modlist", 0, 1, "operserv/modlist")
+ CommandOSModList(Module *creator) : Command(creator, "operserv/modlist", 0, 1)
{
this->SetDesc(_("List loaded modules"));
this->SetSyntax(_("[Core|3rd|protocol|encryption|supported]"));