diff --git a/GlobalMethods.h b/GlobalMethods.h index 85edc89cce..353bba759e 100644 --- a/GlobalMethods.h +++ b/GlobalMethods.h @@ -1880,8 +1880,13 @@ namespace LuaGlobalFunctions switch (banMode) { case BAN_ACCOUNT: +#ifdef TRINITY if (!Utf8ToUpperOnlyLatin(nameOrIP)) return 0; +#else + if (!AccountMgr::normalizeString(nameOrIP)) + return 0; +#endif break; case BAN_CHARACTER: if (!normalizePlayerName(nameOrIP))