diff --git a/GlobalMethods.h b/GlobalMethods.h index 857d5c8..f74766f 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -957,8 +957,13 @@ namespace LuaGlobalFunctions switch (banMode) { case BAN_ACCOUNT: +#ifdef CATA + if (!Utf8ToUpperOnlyLatin(nameOrIP)) + return 0; +#else if (!AccountMgr::normalizeString(nameOrIP)) return 0; +#endif break; case BAN_CHARACTER: if (!normalizePlayerName(nameOrIP))