diff options
| author | Adam <Adam@anope.org> | 2017-01-27 08:40:26 -0500 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2017-01-27 08:40:26 -0500 |
| commit | 9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (patch) | |
| tree | 618a4f0e173166e6f966a7cce78f06c3c1c3299f /modules/botserv/main | |
| parent | 16ca76c2e7ab287e480185fbb03a0bb438351eda (diff) | |
Store CommandInfo in CommandSource instead of just command/permission
Diffstat (limited to 'modules/botserv/main')
| -rw-r--r-- | modules/botserv/main/botserv.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/botserv/main/botserv.cpp b/modules/botserv/main/botserv.cpp index 4b0309b31..522b55489 100644 --- a/modules/botserv/main/botserv.cpp +++ b/modules/botserv/main/botserv.cpp @@ -158,29 +158,29 @@ class BotServCore : public Module, public BotServ::BotServService if (source.c) { - source.Reply(_("\002%s\002 allows you to execute \"fantasy\" commands in the channel.\n" + source.Reply(_("\002{0}\002 allows you to execute \"fantasy\" commands in the channel.\n" "Fantasy commands are commands that can be executed from messaging a\n" "channel, and provide a more convenient way to execute commands. Commands that\n" "require a channel as a parameter will automatically have that parameter\n" - "given.\n"), source.service->nick.c_str()); + "given.\n"), source.service->nick); const Anope::string &fantasycharacters = Config->GetModule("fantasy")->Get<Anope::string>("fantasycharacter", "!"); if (!fantasycharacters.empty()) source.Reply(_(" \n" - "Fantasy commands may be prefixed with one of the following characters: %s\n"), fantasycharacters.c_str()); + "Fantasy commands may be prefixed with one of the following characters: {0}\n"), fantasycharacters); source.Reply(_(" \n" "Available commands are:")); } else if (*source.service == BotServ) { - source.Reply(_("\002%s\002 allows you to have a bot on your own channel.\n" + source.Reply(_("\002{0}\002 allows you to have a bot on your own channel.\n" "It has been created for users that can't host or\n" "configure a bot, or for use on networks that don't\n" "allow user bots. Available commands are listed\n" - "below; to use them, type \002%s%s \037command\037\002. For\n" + "below; to use them, type \002{1}{2} \037command\037\002. For\n" "more information on a specific command, type\n" - "\002%s%s %s \037command\037\002.\n"), - BotServ->nick.c_str(), Config->StrictPrivmsg.c_str(), BotServ->nick.c_str(), - Config->StrictPrivmsg.c_str(), BotServ->nick.c_str(), source.command.c_str()); + "\002{3}{4} {5} \037command\037\002.\n"), + BotServ->nick, Config->StrictPrivmsg, BotServ->nick, + Config->StrictPrivmsg, BotServ->nick, source.GetCommand()); } return EVENT_CONTINUE; |
