diff options
author | Adam <Adam@anope.org> | 2013-05-17 22:53:55 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-05-17 22:53:55 -0400 |
commit | cc4a14b0badfe3d617ec2dd230d7921f8650a069 (patch) | |
tree | 73ded53114ee7b100c548bdb448a6cc36b392da8 /modules/commands/cs_access.cpp | |
parent | 934b5843744e586ce9a3c7725a19c7ddffe14ee8 (diff) |
Removed some hard coded command names in help output
Diffstat (limited to 'modules/commands/cs_access.cpp')
-rw-r--r-- | modules/commands/cs_access.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/modules/commands/cs_access.cpp b/modules/commands/cs_access.cpp index 88dd751c3..f8356b383 100644 --- a/modules/commands/cs_access.cpp +++ b/modules/commands/cs_access.cpp @@ -554,9 +554,13 @@ class CommandCSAccess : public Command "The \002ACCESS CLEAR\002 command clears all entries of the\n" "access list.")); source.Reply(" "); - source.Reply(_("\002User access levels\002 can be seen by using the\n" - "\002LEVELS\002 command; type \002%s%s HELP LEVELS\002 for\n" - "information."), source.service->nick.c_str(), Config->StrictPrivmsg.c_str(), source.service->nick.c_str()); + + BotInfo *bi; + Anope::string cmd; + if (Command::FindCommandFromService("chanserv/levels", bi, cmd)) + source.Reply(_("\002User access levels\002 can be seen by using the\n" + "\002%s\002 command; type \002%s%s HELP LEVELS\002 for\n" + "information."), cmd.c_str(), Config->StrictPrivmsg.c_str(), bi->nick.c_str()); return true; } }; |