mirror of
https://github.com/anope/anope.git
synced 2026-07-07 09:43:13 +02:00
Moved the language strings which are only used once
out of the core and into the modules that use them.
This commit is contained in:
@@ -89,7 +89,7 @@ class CommandCSEnforce : public Command
|
||||
if (check_access(uc->user, ci, CA_NOJOIN))
|
||||
{
|
||||
get_idealban(ci, uc->user, mask);
|
||||
Anope::string reason = GetString(uc->user, CHAN_NOT_ALLOWED_TO_JOIN);
|
||||
Anope::string reason = GetString(uc->user->Account(), LanguageString::CHAN_NOT_ALLOWED_TO_JOIN);
|
||||
c->SetMode(NULL, CMODE_BAN, mask);
|
||||
c->Kick(NULL, uc->user, "%s", reason.c_str());
|
||||
}
|
||||
@@ -113,7 +113,7 @@ class CommandCSEnforce : public Command
|
||||
if (!uc->user->IsIdentified())
|
||||
{
|
||||
get_idealban(ci, uc->user, mask);
|
||||
Anope::string reason = GetString(uc->user, CHAN_NOT_ALLOWED_TO_JOIN);
|
||||
Anope::string reason = GetString(uc->user->Account(), LanguageString::CHAN_NOT_ALLOWED_TO_JOIN);
|
||||
if (!c->HasMode(CMODE_REGISTERED))
|
||||
c->SetMode(NULL, CMODE_BAN, mask);
|
||||
c->Kick(NULL, uc->user, "%s", reason.c_str());
|
||||
@@ -134,9 +134,9 @@ class CommandCSEnforce : public Command
|
||||
Channel *c = ci->c;
|
||||
|
||||
if (!c)
|
||||
u->SendMessage(ChanServ, CHAN_X_NOT_IN_USE, ci->name.c_str());
|
||||
u->SendMessage(ChanServ, LanguageString::CHAN_X_NOT_IN_USE, ci->name.c_str());
|
||||
else if (!check_access(u, ci, CA_AKICK))
|
||||
u->SendMessage(ChanServ, ACCESS_DENIED);
|
||||
u->SendMessage(ChanServ, LanguageString::ACCESS_DENIED);
|
||||
else
|
||||
{
|
||||
if (what.empty() || what.equals_ci("SET"))
|
||||
|
||||
Reference in New Issue
Block a user