summaryrefslogtreecommitdiff
path: root/modules/commands/cs_register.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-05-17 22:53:55 -0400
committerAdam <Adam@anope.org>2013-05-17 22:53:55 -0400
commitcc4a14b0badfe3d617ec2dd230d7921f8650a069 (patch)
tree73ded53114ee7b100c548bdb448a6cc36b392da8 /modules/commands/cs_register.cpp
parent934b5843744e586ce9a3c7725a19c7ddffe14ee8 (diff)
Removed some hard coded command names in help output
Diffstat (limited to 'modules/commands/cs_register.cpp')
-rw-r--r--modules/commands/cs_register.cpp16
1 files changed, 9 insertions, 7 deletions
diff --git a/modules/commands/cs_register.cpp b/modules/commands/cs_register.cpp
index feeb605bc..ff2fbf69c 100644
--- a/modules/commands/cs_register.cpp
+++ b/modules/commands/cs_register.cpp
@@ -103,14 +103,16 @@ class CommandCSRegister : public Command
"\"founder\" of the channel. The channel founder is allowed\n"
"to change all of the channel settings for the channel;\n"
"%s will also automatically give the founder\n"
- "channel-operator privileges when s/he enters the channel.\n"
- "See the \002ACCESS\002 command (\002%s%s HELP ACCESS\002) for\n"
- "information on giving a subset of these privileges to\n"
- "other channel users.\n"
- " \n"
+ "channel-operator privileges when s/he enters the channel."));
+ BotInfo *bi;
+ Anope::string cmd;
+ if (Command::FindCommandFromService("chanserv/access", bi, cmd))
+ source.Reply(_("See the \002%s002 command (\002%s%s HELP ACCESS\002) for\n"
+ "information on giving a subset of these privileges to\n"
+ "other channel users.\n"), cmd.c_str(), Config->StrictPrivmsg.c_str(), bi->nick.c_str());
+ source.Reply(_(" \n"
"NOTICE: In order to register a channel, you must have\n"
- "first registered your nickname."),
- source.service->nick.c_str(), source.service->nick.c_str(), Config->StrictPrivmsg.c_str(), source.service->nick.c_str());
+ "first registered your nickname."));
return true;
}
};