packet send hook can no longer return new packet

This commit is contained in:
Rochet2
2016-03-14 21:42:12 +02:00
parent 0023631b74
commit 4cd17fd9d9
3 changed files with 10 additions and 23 deletions

View File

@@ -1880,13 +1880,8 @@ 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))