mirror of
https://github.com/anope/anope.git
synced 2026-07-09 13:43:14 +02:00
Changed the language system to use gettext
This commit is contained in:
@@ -32,7 +32,7 @@ class CommandCSSASet : public Command
|
||||
{
|
||||
if (readonly)
|
||||
{
|
||||
notice_lang(Config->s_ChanServ, u, CHAN_SET_DISABLED);
|
||||
u->SendMessage(ChanServ, CHAN_SET_DISABLED);
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
@@ -49,8 +49,8 @@ class CommandCSSASet : public Command
|
||||
}
|
||||
else
|
||||
{
|
||||
notice_lang(Config->s_ChanServ, u, CHAN_SET_UNKNOWN_OPTION, params[1].c_str());
|
||||
notice_lang(Config->s_ChanServ, u, MORE_INFO, Config->s_ChanServ.c_str(), "SET");
|
||||
u->SendMessage(ChanServ, NICK_SET_UNKNOWN_OPTION, params[1].c_str());
|
||||
u->SendMessage(ChanServ, MORE_INFO, Config->s_ChanServ.c_str(), "SET");
|
||||
}
|
||||
|
||||
return MOD_CONT;
|
||||
@@ -60,10 +60,10 @@ class CommandCSSASet : public Command
|
||||
{
|
||||
if (subcommand.empty())
|
||||
{
|
||||
notice_help(Config->s_ChanServ, u, CHAN_HELP_SASET_HEAD);
|
||||
u->SendMessage(ChanServ, CHAN_HELP_SASET_HEAD);
|
||||
for (subcommand_map::iterator it = this->subcommands.begin(), it_end = this->subcommands.end(); it != it_end; ++it)
|
||||
it->second->OnServHelp(u);
|
||||
notice_help(Config->s_ChanServ, u, CHAN_HELP_SASET_TAIL);
|
||||
u->SendMessage(ChanServ, CHAN_HELP_SASET_TAIL);
|
||||
return true;
|
||||
}
|
||||
else
|
||||
@@ -79,12 +79,12 @@ class CommandCSSASet : public Command
|
||||
|
||||
void OnSyntaxError(User *u, const Anope::string &subcommand)
|
||||
{
|
||||
syntax_error(Config->s_ChanServ, u, "SASET", CHAN_SASET_SYNTAX);
|
||||
SyntaxError(ChanServ, u, "SASET", CHAN_SASET_SYNTAX);
|
||||
}
|
||||
|
||||
void OnServHelp(User *u)
|
||||
{
|
||||
notice_lang(Config->s_ChanServ, u, CHAN_HELP_CMD_SASET);
|
||||
u->SendMessage(ChanServ, CHAN_HELP_CMD_SASET);
|
||||
}
|
||||
|
||||
bool AddSubcommand(Command *c)
|
||||
|
||||
Reference in New Issue
Block a user