Well, i've tested this and is working very good, it isn't crashing the server.
house.cpp, in function:
Replace:
With:
Replace:
With:
And replace:
With:
It's working good for me, it isn't crashing the server.
I've tested with text like:
And isn't crashing the server
Rep++ if this helped you
house.cpp, in function:
Lua:
bool AccessList::addExpression(const std::string& expression)
Replace:
Lua:
std::string metachars = ".[{}()\\+|^$"
With:
Lua:
std::string metachars = ".[{}()\\+|^$*?"
Replace:
Lua:
if(metachars.find(*it) != std::string::npos)
outExp += "\\";
With:
Lua:
if(metachars.find(*it) != std::string::npos)
outExp += "";
And replace:
Lua:
replaceString(outExp, "*", ".*");
replaceString(outExp, "?", ".?");
With:
Lua:
replaceString(outExp, "*", "");
replaceString(outExp, "?", "");
It's working good for me, it isn't crashing the server.
I've tested with text like:
Code:
*Darkhaos
******
Darkhaos*
Dark*Haos
And isn't crashing the server
Rep++ if this helped you