mirror of
https://github.com/anope/anope.git
synced 2026-07-01 09:16:37 +02:00
Pretty large coding style cleanup, in source doc
cleanup, and allow protocol mods to depend on each other
This commit is contained in:
@@ -41,11 +41,12 @@ class CommandHelp : public Command
|
||||
const CommandInfo &info = it->second;
|
||||
|
||||
// Smaller command exists
|
||||
Anope::string cmd = myStrGetToken(c_name, ' ', 0);
|
||||
Anope::string cmd;
|
||||
spacesepstream(c_name).GetToken(cmd, 0);
|
||||
if (cmd != it->first && map.count(cmd))
|
||||
continue;
|
||||
|
||||
service_reference<Command> c("Command", info.name);
|
||||
ServiceReference<Command> c("Command", info.name);
|
||||
if (!c)
|
||||
continue;
|
||||
else if (!Config->HidePrivilegedCommands)
|
||||
@@ -76,7 +77,7 @@ class CommandHelp : public Command
|
||||
|
||||
const CommandInfo &info = it->second;
|
||||
|
||||
service_reference<Command> c("Command", info.name);
|
||||
ServiceReference<Command> c("Command", info.name);
|
||||
if (!c)
|
||||
continue;
|
||||
else if (!Config->HidePrivilegedCommands)
|
||||
|
||||
Reference in New Issue
Block a user