1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 11:13:13 +02:00

Changed the language system to use gettext

This commit is contained in:
Adam
2010-09-26 02:33:01 -04:00
parent 05e6815d91
commit d646d455e2
239 changed files with 168730 additions and 90259 deletions
+8 -8
View File
@@ -29,9 +29,9 @@ class CommandNSLogout : public Command
if (!u->Account()->IsServicesOper() && !nick.empty())
this->OnSyntaxError(u, "");
else if (!(u2 = (!nick.empty() ? finduser(nick) : u)))
notice_lang(Config->s_NickServ, u, NICK_X_NOT_IN_USE, nick.c_str());
u->SendMessage(NickServ, NICK_X_NOT_IN_USE, nick.c_str());
else if (!nick.empty() && u2->Account() && !u2->Account()->IsServicesOper())
notice_lang(Config->s_NickServ, u, NICK_LOGOUT_SERVICESADMIN, nick.c_str());
u->SendMessage(NickServ, NICK_LOGOUT_SERVICESADMIN, nick.c_str());
else
{
if (!nick.empty() && !param.empty() && param.equals_ci("REVALIDATE"))
@@ -42,9 +42,9 @@ class CommandNSLogout : public Command
/* Remove founder status from this user in all channels */
if (!nick.empty())
notice_lang(Config->s_NickServ, u, NICK_LOGOUT_X_SUCCEEDED, nick.c_str());
u->SendMessage(NickServ, NICK_LOGOUT_X_SUCCEEDED, nick.c_str());
else
notice_lang(Config->s_NickServ, u, NICK_LOGOUT_SUCCEEDED);
u->SendMessage(NickServ, NICK_LOGOUT_SUCCEEDED);
ircdproto->SendAccountLogout(u2, u2->Account());
u2->RemoveMode(NickServ, UMODE_REGISTERED);
@@ -61,21 +61,21 @@ class CommandNSLogout : public Command
bool OnHelp(User *u, const Anope::string &subcommand)
{
if (u->Account() && u->Account()->IsServicesOper())
notice_help(Config->s_NickServ, u, NICK_SERVADMIN_HELP_LOGOUT);
u->SendMessage(NickServ, NICK_SERVADMIN_HELP_LOGOUT);
else
notice_help(Config->s_NickServ, u, NICK_HELP_LOGOUT);
u->SendMessage(NickServ, NICK_HELP_LOGOUT);
return true;
}
void OnSyntaxError(User *u, const Anope::string &subcommand)
{
syntax_error(Config->s_NickServ, u, "LOGOUT", NICK_LOGOUT_SYNTAX);
SyntaxError(NickServ, u, "LOGOUT", NICK_LOGOUT_SYNTAX);
}
void OnServHelp(User *u)
{
notice_lang(Config->s_NickServ, u, NICK_HELP_CMD_LOGOUT);
u->SendMessage(NickServ, NICK_HELP_CMD_LOGOUT);
}
};