1
0
mirror of https://github.com/anope/anope.git synced 2026-06-30 09:16:38 +02:00

Replaced the few language strings we use with #defines to prevent accidentally translating them if we shouldnt

This commit is contained in:
Adam
2011-02-26 17:54:03 -05:00
parent 28d17a40ce
commit f234a2bfab
107 changed files with 619 additions and 630 deletions
+5 -5
View File
@@ -488,14 +488,14 @@ XLine *SGLineManager::Add(BotInfo *bi, User *u, const Anope::string &mask, time_
if (mask.find('@') == Anope::string::npos)
{
if (bi && u)
u->SendMessage(bi, LanguageString::BAD_USERHOST_MASK);
u->SendMessage(bi, _(BAD_USERHOST_MASK));
return NULL;
}
if (mask.find_first_not_of("~@.*?") == Anope::string::npos)
{
if (bi && u)
u->SendMessage(bi, LanguageString::USERHOST_MASK_TOO_WIDE, mask.c_str());
u->SendMessage(bi, _(USERHOST_MASK_TOO_WIDE), mask.c_str());
return NULL;
}
@@ -563,7 +563,7 @@ XLine *SNLineManager::Add(BotInfo *bi, User *u, const Anope::string &mask, time_
if (!mask.empty() && mask.find_first_not_of("*?") == Anope::string::npos)
{
if (bi && u)
u->SendMessage(bi, LanguageString::USERHOST_MASK_TOO_WIDE, mask.c_str());
u->SendMessage(bi, _(USERHOST_MASK_TOO_WIDE), mask.c_str());
return NULL;
}
@@ -666,7 +666,7 @@ XLine *SQLineManager::Add(BotInfo *bi, User *u, const Anope::string &mask, time_
if (mask.find_first_not_of("*") == Anope::string::npos)
{
if (bi && u)
u->SendMessage(OperServ, LanguageString::USERHOST_MASK_TOO_WIDE, mask.c_str());
u->SendMessage(OperServ, _(USERHOST_MASK_TOO_WIDE), mask.c_str());
return NULL;
}
@@ -798,7 +798,7 @@ XLine *SZLineManager::Add(BotInfo *bi, User *u, const Anope::string &mask, time_
if (mask.find_first_not_of("*?") == Anope::string::npos)
{
u->SendMessage(OperServ, LanguageString::USERHOST_MASK_TOO_WIDE, mask.c_str());
u->SendMessage(OperServ, _(USERHOST_MASK_TOO_WIDE), mask.c_str());
return NULL;
}