summaryrefslogtreecommitdiff
path: root/src/regchannel.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-04 15:30:31 -0500
committerAdam <Adam@anope.org>2011-02-04 15:30:31 -0500
commit08583dc107974252312fb7c87532c9deb68e7f63 (patch)
tree0c42ec7422752cabd8352b49be976b4dc100c56c /src/regchannel.cpp
parentc362a1e077d5ede9eadbe79483f2a755b5883e9a (diff)
Moved the language strings which are only used once
out of the core and into the modules that use them.
Diffstat (limited to 'src/regchannel.cpp')
-rw-r--r--src/regchannel.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/regchannel.cpp b/src/regchannel.cpp
index 16e90bebb..b1d7c77dc 100644
--- a/src/regchannel.cpp
+++ b/src/regchannel.cpp
@@ -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;
}