From d6cbadfec9037c160a28ec72fac9e2ebe276195a Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Thu, 17 Mar 2016 11:39:18 +0200 Subject: [PATCH] Fix https://github.com/ElunaLuaEngine/Eluna/issues/194 --- GlobalMethods.h | 5 +++++ 1 file changed, 5 insertions(+) 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))