Update GlobalMethods.h

This commit is contained in:
WiZZy
2019-03-26 17:20:53 +02:00
committed by GitHub
parent 3eaa54dc72
commit 70e01131e4

View File

@@ -1953,11 +1953,7 @@ namespace LuaGlobalFunctions
{
int banMode = Eluna::CHECKVAL<int>(L, 1);
std::string nameOrIP = Eluna::CHECKVAL<std::string>(L, 2);
#ifdef AZEROTHCORE
std::string duration = Eluna::CHECKVAL<std::string>(L, 3);
#elif
uint32 duration = Eluna::CHECKVAL<uint32>(L, 3);
#endif
const char* reason = Eluna::CHECKVAL<const char*>(L, 4, "");
const char* whoBanned = Eluna::CHECKVAL<const char*>(L, 5, "");