summaryrefslogtreecommitdiff
path: root/src/operserv.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-02-26 17:54:03 -0500
committerAdam <Adam@anope.org>2011-02-26 17:54:03 -0500
commitf234a2bfab8a4d900cfc0df91afed530d80738d4 (patch)
tree0224eb342a7d60cee86995bd87910f858d7a2e53 /src/operserv.cpp
parent28d17a40cef64783addf177fa30fb267db2cbde7 (diff)
Replaced the few language strings we use with #defines to prevent accidentally translating them if we shouldnt
Diffstat (limited to 'src/operserv.cpp')
-rw-r--r--src/operserv.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/operserv.cpp b/src/operserv.cpp
index 4e915117c..5329988c2 100644
--- a/src/operserv.cpp
+++ b/src/operserv.cpp
@@ -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;
}