1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 23: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
+2 -3
View File
@@ -11,7 +11,6 @@
#include "services.h"
#include "modules.h"
#include "language.h"
/** Default constructor
* @param chname The channel name
@@ -560,7 +559,7 @@ bool ChannelInfo::CheckKick(User *user)
if (!is_oper(user) && (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, CHAN_MAY_NOT_BE_USED) : this->forbidreason;
set_modes = true;
do_kick = true;
}
@@ -594,7 +593,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, CHAN_NOT_ALLOWED_TO_JOIN);
do_kick = true;
}