mirror of
https://github.com/mangosfour/server.git
synced 2025-12-16 04:37:00 +00:00
[11173] Fixed substring search in .lookup pool
This commit is contained in:
parent
bbdd04d1ab
commit
e586354cea
2 changed files with 6 additions and 2 deletions
|
|
@ -4699,7 +4699,11 @@ bool ChatHandler::HandleLookupPoolCommand(char * args)
|
|||
for(uint16 pool_id = 0; pool_id < sPoolMgr.GetMaxPoolId(); ++pool_id)
|
||||
{
|
||||
PoolTemplateData const& pool_template = sPoolMgr.GetPoolTemplate(pool_id);
|
||||
if (pool_template.description.find(namepart) == std::wstring::npos)
|
||||
|
||||
std::string desc = pool_template.description;
|
||||
strToLower(desc);
|
||||
|
||||
if (desc.find(namepart) == std::wstring::npos)
|
||||
continue;
|
||||
|
||||
ShowPoolListHelper(pool_id);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue