1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 17:43:12 +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:
Adam
2011-02-04 15:30:31 -05:00
parent c362a1e077
commit 08583dc107
226 changed files with 42289 additions and 45412 deletions
+2 -2
View File
@@ -744,7 +744,7 @@ bool ChannelInfo::CheckKick(User *user)
if (!user->HasMode(UMODE_OPER) && (this->HasFlag(CI_SUSPENDED) || this->HasFlag(CI_FORBIDDEN)))
{
get_idealban(this, user, mask);
reason = this->forbidreason.empty() ? GetString(user, CHAN_MAY_NOT_BE_USED) : this->forbidreason;
reason = this->forbidreason.empty() ? GetString(user->Account(), _("This channel may not be used.")) : this->forbidreason;
set_modes = true;
do_kick = true;
}
@@ -785,7 +785,7 @@ bool ChannelInfo::CheckKick(User *user)
if (!do_kick && check_access(user, this, CA_NOJOIN))
{
get_idealban(this, user, mask);
reason = GetString(user, CHAN_NOT_ALLOWED_TO_JOIN);
reason = GetString(user->Account(), LanguageString::CHAN_NOT_ALLOWED_TO_JOIN);
do_kick = true;
}