mirror of
https://github.com/anope/anope.git
synced 2026-07-02 06:26:38 +02:00
Changed the language system to use gettext
This commit is contained in:
@@ -26,7 +26,7 @@ class CommandBSBotList : public Command
|
||||
|
||||
if (BotListByNick.empty())
|
||||
{
|
||||
notice_lang(Config->s_BotServ, u, BOT_BOTLIST_EMPTY);
|
||||
u->SendMessage(BotServ, BOT_BOTLIST_EMPTY);
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ class CommandBSBotList : public Command
|
||||
if (!bi->HasFlag(BI_PRIVATE))
|
||||
{
|
||||
if (!count)
|
||||
notice_lang(Config->s_BotServ, u, BOT_BOTLIST_HEADER);
|
||||
u->SendMessage(BotServ, BOT_BOTLIST_HEADER);
|
||||
++count;
|
||||
u->SendMessage(Config->s_BotServ, " %-15s (%s@%s)", bi->nick.c_str(), bi->GetIdent().c_str(), bi->host.c_str());
|
||||
}
|
||||
@@ -45,7 +45,7 @@ class CommandBSBotList : public Command
|
||||
|
||||
if (u->Account()->HasCommand("botserv/botlist") && count < BotListByNick.size())
|
||||
{
|
||||
notice_lang(Config->s_BotServ, u, BOT_BOTLIST_PRIVATE_HEADER);
|
||||
u->SendMessage(BotServ, BOT_BOTLIST_PRIVATE_HEADER);
|
||||
|
||||
for (botinfo_map::const_iterator it = BotListByNick.begin(), it_end = BotListByNick.end(); it != it_end; ++it)
|
||||
{
|
||||
@@ -60,22 +60,22 @@ class CommandBSBotList : public Command
|
||||
}
|
||||
|
||||
if (!count)
|
||||
notice_lang(Config->s_BotServ, u, BOT_BOTLIST_EMPTY);
|
||||
u->SendMessage(BotServ, BOT_BOTLIST_EMPTY);
|
||||
else
|
||||
notice_lang(Config->s_BotServ, u, BOT_BOTLIST_FOOTER, count);
|
||||
u->SendMessage(BotServ, BOT_BOTLIST_FOOTER, count);
|
||||
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
bool OnHelp(User *u, const Anope::string &subcommand)
|
||||
{
|
||||
notice_help(Config->s_BotServ, u, BOT_HELP_BOTLIST);
|
||||
u->SendMessage(BotServ, BOT_HELP_BOTLIST);
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnServHelp(User *u)
|
||||
{
|
||||
notice_lang(Config->s_BotServ, u, BOT_HELP_CMD_BOTLIST);
|
||||
u->SendMessage(BotServ, BOT_HELP_CMD_BOTLIST);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user