mirror of
https://github.com/anope/anope.git
synced 2026-07-01 02:46:37 +02:00
Replaced the few language strings we use with #defines to prevent accidentally translating them if we shouldnt
This commit is contained in:
@@ -36,14 +36,14 @@ class CommandHSList : public Command
|
||||
size_t tmp = key.find('-');
|
||||
if (tmp == Anope::string::npos || tmp == key.length() || tmp == 1)
|
||||
{
|
||||
source.Reply(LanguageString::LIST_INCORRECT_RANGE);
|
||||
source.Reply(_(LIST_INCORRECT_RANGE));
|
||||
return MOD_CONT;
|
||||
}
|
||||
for (unsigned i = 1, end = key.length(); i < end; ++i)
|
||||
{
|
||||
if (!isdigit(key[i]) && i != tmp)
|
||||
{
|
||||
source.Reply(LanguageString::LIST_INCORRECT_RANGE);
|
||||
source.Reply(_(LIST_INCORRECT_RANGE));
|
||||
return MOD_CONT;
|
||||
}
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user