From cc4a14b0badfe3d617ec2dd230d7921f8650a069 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 17 May 2013 22:53:55 -0400 Subject: Removed some hard coded command names in help output --- modules/commands/cs_access.cpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'modules/commands/cs_access.cpp') 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; } }; -- cgit